This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed: target-fpic-adjust g++.old-deja/g++.jason/thunk2.C
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 22 Oct 2005 22:58:04 +0200
- Subject: Committed: target-fpic-adjust g++.old-deja/g++.jason/thunk2.C
Looks like I missed this one last time. I kept the dg-bogus test,
because that one looks like a link-time test, which target fpic
doesn't do.
Committed as obvious after checking that CRIS MMIX and SH (the
latter emitting neither warning nor error) liked it; fixes the
fpic FAIL on cris-elf.
* g++.old-deja/g++.jason/thunk2.C: Guard test with { target fpic }.
Index: g++.old-deja/g++.jason/thunk2.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.jason/thunk2.C,v
retrieving revision 1.9
diff -p -u -r1.9 thunk2.C
--- g++.old-deja/g++.jason/thunk2.C 20 Jun 2005 06:45:26 -0000 1.9
+++ g++.old-deja/g++.jason/thunk2.C 22 Oct 2005 20:49:17 -0000
@@ -1,4 +1,4 @@
-// { dg-do run }
+// { dg-do run { target fpic } }
// { dg-options "-fPIC" }
// { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))|\[Bb\]ad fixup at .DATA.:" "PIC unsupported" { xfail *-*-netware* } 0 }
// Test that non-variadic function calls using thunks and PIC work right.
brgds, H-P