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

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Sat Jun 4 03:25:00 GMT 2005


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



More information about the Gcc-patches mailing list