summaryrefslogtreecommitdiff
path: root/gcc/config/s390
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-13 05:42:40 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-13 05:42:40 +0000
commitdf9f5cf876500e0d1acc2c339c908073efd020a2 (patch)
treeff7ebe9916a64b81e187d279cffac13101372cd6 /gcc/config/s390
parentea8c8ab26ade5f25efe44b10bd938312abcd479d (diff)
downloadgcc-df9f5cf876500e0d1acc2c339c908073efd020a2.tar.gz
PR 5878
* config/arc/arc.h, config/cris/cris.h, config/i386/i386.h, config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic. * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h, config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic. * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New. * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM. (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK also. Don't set it if not flag_pic. * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM to be INVALID_REGNUM when not used. * gcc.dg/20020312-2.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50713 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/s390')
-rw-r--r--gcc/config/s390/s390.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h
index 8ab287b2df7..93b355caf65 100644
--- a/gcc/config/s390/s390.h
+++ b/gcc/config/s390/s390.h
@@ -249,7 +249,7 @@ if (INTEGRAL_MODE_P (MODE) && \
GPR 14: Return registers holds the return address
GPR 15: Stack pointer */
-#define PIC_OFFSET_TABLE_REGNUM 12
+#define PIC_OFFSET_TABLE_REGNUM (flag_pic ? 12 : INVALID_REGNUM)
#define BASE_REGISTER 13
#define RETURN_REGNUM 14
#define STACK_POINTER_REGNUM 15