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]

Testsuite tweaks on SPARC


The 3 testcases gcc.dg/ultrasp2.c, gcc.dg/ultrasp4.c and gcc.dg/ultrasp8.c 
fail on sparc64-*-* with -m32 because they explicitly pass -m64 to the 
compiler.  This is unnecessary since the code produced by a sparc64-*-* 
compiler is 64-bit by default.

Fixed thusly, applied to mainline.


2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* gcc.dg/ultrasp2.c: Do not pass -m64.  Remove redundant lines.
	* gcc.dg/ultrasp4.c: Likewise.
	* gcc.dg/ultrasp8.c: Do not pass -m64.  Add sparcv9-*-*.


--
Eric Botcazou
Index: ultrasp2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/ultrasp2.c,v
retrieving revision 1.2
diff -u -r1.2 ultrasp2.c
--- ultrasp2.c	15 May 2001 02:45:32 -0000	1.2
+++ ultrasp2.c	22 Mar 2004 06:49:50 -0000
@@ -4,10 +4,7 @@
 
 /* { dg-do compile } */
 /* { dg-options "" } */
-/* { dg-options "-O0 -m64" { target sparc64-*-* } } */
-/* { dg-options "-O0 -m64" { target sparcv9-*-* } } */
-/* { dg-options "" { target sparc-*-solaris2.[0-6] } } */
-/* { dg-options "" { target sparc-*-solaris2.[0-6].* } } */
+/* { dg-options "-O0" { target sparc64-*-* sparcv9-*-* } } */
 
 short foo() {
   short i = (short)(1<<15);
Index: ultrasp4.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/ultrasp4.c,v
retrieving revision 1.1
diff -u -r1.1 ultrasp4.c
--- ultrasp4.c	16 Jan 2002 17:44:24 -0000	1.1
+++ ultrasp4.c	22 Mar 2004 06:49:50 -0000
@@ -1,10 +1,7 @@
 /* Simplified from PR target/5309.  */
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
-/* { dg-options "-O2 -m64 -mcpu=ultrasparc" { target sparc64-*-* } } */
-/* { dg-options "-O2 -m64 -mcpu=ultrasparc" { target sparcv9-*-* } } */
-/* { dg-options "-O2" { target sparc-*-solaris2.[0-6] } } */
-/* { dg-options "-O2" { target sparc-*-solaris2.[0-6].* } } */
+/* { dg-options "-O2 -mcpu=ultrasparc" { target sparc64-*-* sparcv9-*-* } } */
 
 long bar (unsigned int);
 long foo (long x, unsigned int y)
Index: ultrasp8.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/ultrasp8.c,v
retrieving revision 1.2
diff -u -r1.2 ultrasp8.c
--- ultrasp8.c	12 Apr 2003 17:45:01 -0000	1.2
+++ ultrasp8.c	22 Mar 2004 06:49:50 -0000
@@ -1,7 +1,7 @@
 /* PR target/10067 */
 /* Originator: <dat94ali@ludat.lth.se> */
 /* { dg-do compile { target sparc*-*-* } } */
-/* { dg-options "-O2 -m64 -mtune=supersparc" { target sparc64-*-* } } */
+/* { dg-options "-O2 -mtune=supersparc" { target sparc64-*-* sparcv9-*-* } } */
 
 struct _reent;
 

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