This is the mail archive of the 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]

g++.dg/opt/crossjump1.C: Use { target fpic } when option -fpic or -fPIC

Pretty please everybody, gate -fpic/-fPIC usage on "target fpic"
henceforth as below.  It's not used everywhere, but that's just
because it's relatively recent.  Noticed to fail on
cris-axis-elf and mmix-knuth-mmixware.  Doesn't fail on
cris-axis-linux-gnu with or without this patch.  Committed.

	* g++.dg/opt/crossjump1.C: Gate -fPIC usage on target fpic.

Index: crossjump1.C
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/opt/crossjump1.C,v
retrieving revision 1.1
diff -p -c -u -p -r1.1 crossjump1.C
cvs diff: conflicting specifications of output style
--- crossjump1.C	17 May 2005 06:48:19 -0000	1.1
+++ crossjump1.C	4 Jun 2005 03:05:57 -0000
@@ -1,6 +1,7 @@
 // PR middle-end/21492
 // { dg-do compile }
-// { dg-options "-Os -fPIC" }
+// { dg-options "-Os" }
+// { dg-options "-Os -fPIC" { target fpic } }
 extern char *bar (const char *, const char *);
 extern char *baz (char *, const char *);

brgds, H-P

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