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]

support EABI in gcc.dg/20020103-1.c



The test was giving an error, because apparently __PPC__ is the define
for EABI.

After this change, the test still failed (with my older compiler), but
now for the right reasons.  Hopefully it will pass with the current
CVS, but that's not really the point :-).

Tested by compiling just this one test on a handy pre-built compiler
from November.

-- 
Geoff Keating <geoffk@redhat.com>

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/ChangeLog,v
retrieving revision 1.1556
diff -p -u -p -r1.1556 ChangeLog
--- ChangeLog	2002/01/15 17:30:25	1.1556
+++ ChangeLog	2002/01/15 20:47:33
@@ -1,3 +1,8 @@
+2002-01-15  Geoffrey Keating  <geoffk@redhat.com>
+
+	* gcc.dg/20020103-1.c: Also test for __PPC__, since that's used
+	by EABI.
+
 2002-01-15  Janis Johnson  <janis187@us.ibm.com>
 
 	* gcc.misc-tests/i386-prefetch.exp: New.
Index: gcc.dg/20020103-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20020103-1.c,v
retrieving revision 1.2
diff -p -u -p -r1.2 20020103-1.c
--- 20020103-1.c	2002/01/04 05:57:59	1.2
+++ 20020103-1.c	2002/01/15 20:47:33
@@ -8,7 +8,7 @@
 #if defined(__i386__)
 #define clobber \
   asm volatile("#asm" : : : "si", "di")
-#elif defined(__powerpc__)
+#elif defined(__powerpc__) || defined(__PPC__)
 #define clobber \
   asm volatile("#asm" : : : "14", "15", "16", "17", "18", "19", "20", \
 	       "21", "22", "23", "24", "25", "26", "27", "28", "29")


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