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] Fix PR c/6123


Hi!

I agree with Kaveh on this...
Running the testsuite with -fpic/-fPIC as additional flags should be
possible, it may reveal problems which normally don't come up.

2002-04-03  Jakub Jelinek  <jakub@redhat.com>

	PR c/6123
	* gcc.dg/20020312-2.c: Do not declare global register variable
	if __PIC__ or __pic__ is defined.

--- gcc/testsuite/gcc.dg/20020312-2.c.jj	Wed Mar 27 11:52:04 2002
+++ gcc/testsuite/gcc.dg/20020312-2.c	Wed Apr  3 18:38:04 2002
@@ -96,7 +96,7 @@
 # error "Modify the test for your target."
 #endif
 
-#ifdef PIC_REG
+#if defined PIC_REG && !defined __PIC__ && !defined __pic__
 register void *reg __asm__(PIC_REG);
 #else
 /* We really need a global register variable set to the PIC register

	Jakub


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