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 -ansi error in gcc.dg/loop-2.c


Executing on host: /usr/tmp/ppc/gcc64-curr/gcc/xgcc -B/usr/tmp/ppc/gcc64-curr/gcc/ /src/gcc-current/gcc/testsuite/gcc.dg/loop-2.c    -ansi -pedantic-errors  -lm   -o ./loop-2.exe    (timeout = 300)
/src/gcc-current/gcc/testsuite/gcc.dg/loop-2.c:6: error: syntax error before "int"

Committing as obvious.

gcc/testsuite/ChangeLog
	* gcc.dg/loop-2.c: Replace "inline" with "__inline__".

Index: gcc.dg/loop-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/loop-2.c,v
retrieving revision 1.1
diff -u -p -r1.1 loop-2.c
--- gcc.dg/loop-2.c	25 Mar 2003 20:24:42 -0000	1.1
+++ gcc.dg/loop-2.c	26 Mar 2003 12:45:53 -0000
@@ -3,7 +3,7 @@
    0 iterations of the loop rather than the correct 1.  */
 /* { dg-do run } */
 
-inline int tag() { return 0; }
+__inline__ int tag() { return 0; }
 
 void f ();
 

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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