diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2004-02-18 22:18:54 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2004-02-18 22:18:54 +0000 |
commit | 3cf7104e3e722f1170660e8348374621a8a491d0 (patch) | |
tree | 59de9384f8a6795b305a89247eda01b5c1fffbf0 /gcc/config | |
parent | 8981ecd360e0980aa2f16fa37c4be9d9da1fff21 (diff) | |
download | gcc-3cf7104e3e722f1170660e8348374621a8a491d0.zip gcc-3cf7104e3e722f1170660e8348374621a8a491d0.tar.gz gcc-3cf7104e3e722f1170660e8348374621a8a491d0.tar.bz2 |
pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not generating PIC code.
* pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
generating PIC code.
From-SVN: r78053
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/pa/pa.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 62b670c..3088425 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -541,10 +541,11 @@ do { \ /* Register in which static-chain is passed to a function. */ #define STATIC_CHAIN_REGNUM 29 -/* Register which holds offset table for position-independent +/* Register used to address the offset table for position-independent data references. */ +#define PIC_OFFSET_TABLE_REGNUM \ + (flag_pic ? (TARGET_64BIT ? 27 : 19) : INVALID_REGNUM) -#define PIC_OFFSET_TABLE_REGNUM (TARGET_64BIT ? 27 : 19) #define PIC_OFFSET_TABLE_REG_CALL_CLOBBERED 1 /* Function to return the rtx used to save the pic offset table register |