]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not generating PIC...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Wed, 18 Feb 2004 22:18:54 +0000 (22:18 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 18 Feb 2004 22:18:54 +0000 (22:18 +0000)
* pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
generating PIC code.

From-SVN: r78053

gcc/ChangeLog
gcc/config/pa/pa.h

index 8face630335fdd39bc7210ddb9cdd40d930f9594..12345f58fa110161e2d413feb1c3a920565978d5 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
+       generating PIC code.
+
 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300-protos.h: Add a prototype for
index 62b670c83e29853329ddaef55e05506865c6829c..308842511d58a0088bdbc2d7b28aeacddd91da9e 100644 (file)
@@ -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