This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix gcc.dg/uninit-C.c and gcc.dg/uninit-H.c on SPARC


We no longer support TImode on SPARC 32-bit so gcc.dg/uninit-C.c should not be 
special-cased anymore.  And gcc.dg/uninit-H.c needs the appropriate 
definition.

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


2004-11-02 ?Eric Botcazou ?<ebotcazou@libertysurf.fr>

	* gcc.dg/uninit-C.c: Remove special-casing for SPARC.
	* gcc.dg/uninit-H.c: Define to "sp" on SPARC.


-- 
Eric Botcazou
Index: gcc.dg/uninit-C.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/uninit-C.c,v
retrieving revision 1.3
diff -u -r1.3 uninit-C.c
--- gcc.dg/uninit-C.c	5 Nov 2003 20:15:02 -0000	1.3
+++ gcc.dg/uninit-C.c	2 Nov 2004 16:00:24 -0000
@@ -3,8 +3,8 @@
 /* { dg-options "-O -Wuninitialized" } */
 
 /* Not all platforms support TImode integers.  */
-#if defined(__LP64__) || defined(__sparc__)
-typedef int TItype __attribute__ ((mode (TI)));  /* { dg-error "no data type for mode" "TI" { target sparc-sun-solaris2.[0-6]* } } */
+#if defined(__LP64__)
+typedef int TItype __attribute__ ((mode (TI)));
 #else
 typedef long TItype;
 #endif
Index: gcc.dg/uninit-H.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/uninit-H.c,v
retrieving revision 1.6
diff -u -r1.6 uninit-H.c
--- gcc.dg/uninit-H.c	1 Nov 2004 20:24:10 -0000	1.6
+++ gcc.dg/uninit-H.c	2 Nov 2004 16:00:24 -0000
@@ -12,6 +12,8 @@
 # define ASM __asm__("r15")
 #elif defined __mips
 # define ASM __asm__("$sp")
+#elif defined __sparc__
+# define ASM __asm__("sp")
 #else
 # define ASM
 #endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]