Patchwork Fix g++.dg/debug/nullptr01.C on the SPARC

login
register
mail settings
Submitter Eric Botcazou
Date Oct. 24, 2010, 7:17 p.m.
Message ID <201010242117.15195.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/69046/
State New
Headers show

Comments

Eric Botcazou - Oct. 24, 2010, 7:17 p.m.
The back-end needs to cope with the newly introduced NULLPTR_TYPE.

Tested on sparc-sun-solaris2.8, applied on the mainline.


2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>

	* config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.

Patch

Index: config/sparc/sparc.c
===================================================================
--- config/sparc/sparc.c	(revision 165881)
+++ config/sparc/sparc.c	(working copy)
@@ -7729,7 +7729,8 @@  sparc_type_code (register tree type)
 
 	case VECTOR_TYPE:
 	case BOOLEAN_TYPE:	/* Boolean truth value type.  */
-	case LANG_TYPE:		/* ? */
+	case LANG_TYPE:
+	case NULLPTR_TYPE:
 	  return qualifiers;
 
 	default: