Commit a4fa73f3 by Jakub Jelinek Committed by Jakub Jelinek

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: r51859
parent 8b156b3e
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-04 Richard Earnshaw <rearnsha@arm.com> 2002-04-04 Richard Earnshaw <rearnsha@arm.com>
* gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC. Use * gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC. Use
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
# error "Modify the test for your target." # error "Modify the test for your target."
#endif #endif
#ifdef PIC_REG #if defined PIC_REG && !defined __PIC__ && !defined __pic__
register void *reg __asm__(PIC_REG); register void *reg __asm__(PIC_REG);
#else #else
/* We really need a global register variable set to the PIC register /* We really need a global register variable set to the PIC register
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment