This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: testsuite fix for gcc.dg/tree-ssa/20070302-1.c with -fpic/-fPIC
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: janis187 at us dot ibm dot com, dnovillo at google dot com
- Date: Fri, 11 Jan 2008 00:24:43 -0500 (EST)
- Subject: [PATCH]: testsuite fix for gcc.dg/tree-ssa/20070302-1.c with -fpic/-fPIC
Hi Diego,
I believe you wrote this testcase, which is failing with -fpic/-fPIC on
i686 and x86_64 on all branches. E.g.:
http://gcc.gnu.org/ml/gcc-testresults/2008-01/msg00383.html
Patch below allows the it to pass, but I wanted to be sure it doesn't
change the nature of the testcase.
Okay for mainline/4.2/4.1?
Thanks,
--Kaveh
2008-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/tree-ssa/20070302-1.c: Use static.
diff -rup orig/egcc-SVN20080110/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c egcc-SVN20080110/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c
--- orig/egcc-SVN20080110/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c 2008-01-03 23:34:32.000000000 +0100
+++ egcc-SVN20080110/gcc/testsuite/gcc.dg/tree-ssa/20070302-1.c 2008-01-11 06:07:09.000000000 +0100
@@ -9,7 +9,7 @@ struct A
volatile float X, Y;
-int baz (struct A *z, struct A *y)
+static int baz (struct A *z, struct A *y)
{
z->x = (int) X;
z->y = Y;