(PIC_OFFEST_TABLE_REGNUM_SAVED): Define to %r4.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 28 Jun 1995 22:03:47 +0000 (18:03 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 28 Jun 1995 22:03:47 +0000 (18:03 -0400)
(CONDITIONAL_REGISTER_USAGE): Make it fixed when compiling PIC code.
(INIT_EXPANDERS): Delete.

From-SVN: r10087

gcc/config/pa/pa.h

index 3754263f124b4b74c327b52b5cddc59c9b28a186..3f1504b02b3fc4b960a1781262fd904322887014 100644 (file)
@@ -472,7 +472,10 @@ do {                                                               \
        fixed_regs[i] = call_used_regs[i] = 1;  \
     }                                          \
   if (flag_pic)                                        \
-    fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1;   \
+    {                                          \
+      fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
+      fixed_regs[PIC_OFFSET_TABLE_REGNUM_SAVED] = 1;\
+    }                                          \
 }
 
 /* Allocate the call used registers first.  This should minimize
@@ -575,10 +578,9 @@ do {                                                               \
 #define PIC_OFFSET_TABLE_REGNUM 19
 #define PIC_OFFSET_TABLE_REG_CALL_CLOBBERED 1
 
-/* Initialize hppa_save_pic_table_rtx before RTL generation for
-   each function.  We used to do this in FINALIZE_PIC, but FINALIZE_PIC
-   isn't always called for static inline functions.  */
-#define INIT_EXPANDERS hppa_save_pic_table_rtx = 0;
+/* Register into which we save the PIC_OFFEST_TABLE_REGNUM so that it
+   can be restore across function calls.  */
+#define PIC_OFFSET_TABLE_REGNUM_SAVED 4
 
 /* SOM ABI says that objects larger than 64 bits are returned in memory.  */
 #define DEFAULT_PCC_STRUCT_RETURN 0
@@ -2152,8 +2154,6 @@ extern struct rtx_def *legitimize_pic_address ();
 extern struct rtx_def *gen_cmp_fp ();
 extern void hppa_encode_label ();
 
-extern struct rtx_def *hppa_save_pic_table_rtx;
-
 #if 0
 #define PREDICATE_CODES \
   {"reg_or_0_operand", {SUBREG, REG, CONST_INT, CONST_DOUBLE}},                \