This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]