]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/testsuite/gcc.dg/20020312-2.c
sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
[gcc.git] / gcc / testsuite / gcc.dg / 20020312-2.c
index 60d7a7521cd94e19b3b039c7bec3294289770a12..0ceffc72e5c35cba85caf64c1934d19d7a102dc9 100644 (file)
 /* No pic register.  */
 #elif defined(__XTENSA__)
 /* No pic register.  */
+#elif defined(__sh__)
+# define PIC_REG  "r12"
 #else
 # 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
This page took 0.034042 seconds and 5 git commands to generate.