re PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified)

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

From-SVN: r51858
This commit is contained in:
Jakub Jelinek 2002-04-04 14:37:24 +02:00 committed by Jakub Jelinek
parent 9533ac1096
commit 12d4be42da
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-04-04 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.
2002-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.misc-tests/linkage.exp: Update last change to handle

View File

@ -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