[testsuite patch]: PR 25214 -fpic/-fPIC failure in gcc.dg/i386-local2.c

Kaveh R. Ghazi ghazi@caipclassic.rutgers.edu
Fri Dec 30 06:37:00 GMT 2005


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 ();



More information about the Gcc-patches mailing list