This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR c/6123
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 3 Apr 2002 18:34:16 +0200
- Subject: [PATCH] Fix PR c/6123
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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