This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite patch]: PR 25214 -fpic/-fPIC failure in gcc.dg/i386-local2.c
- From: "Kaveh R. Ghazi" <ghazi at caipclassic dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: janis187 at us dot ibm dot com, pinskia at physics dot uc dot edu
- Date: Thu, 29 Dec 2005 23:05:23 -0500 (EST)
- Subject: [testsuite patch]: PR 25214 -fpic/-fPIC failure in gcc.dg/i386-local2.c
This patch addresses PR 25214, an x86 failure with -fpic/-fPIC on all
active branches. Andrew suggested that the test should be skipped in
those cases.
Tested via gcc-3.4 "make check" on i686-unknown-linux-gnu. (Note as
of gcc-4.1, the testcase was moved to the gcc.target/i386/ directory.)
Okay for 3.4/4.0/4.1/mainline?
Thanks,
--Kaveh
2005-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
PR testsuite/25214
* gcc.dg/i386-local2.c: Skip if ilp32 and -fpic/-fpic.
diff -rup orig/egcc-4.0-SVN20051229/gcc/testsuite/gcc.dg/i386-local2.c egcc-4.0-SVN20051229/gcc/testsuite/gcc.dg/i386-local2.c
--- orig/egcc-4.0-SVN20051229/gcc/testsuite/gcc.dg/i386-local2.c 2005-11-03 10:42:36.000000000 -0500
+++ egcc-4.0-SVN20051229/gcc/testsuite/gcc.dg/i386-local2.c 2005-12-29 22:25:00.000000000 -0500
@@ -1,5 +1,6 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -funit-at-a-time -fomit-frame-pointer" } */
+/* { dg-skip-if "PR 25214" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
/* { dg-final { scan-assembler-not "sub\[^\\n\]*sp" } } */
static __attribute__ ((noinline)) q ();