aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-06-28 18:03:47 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-06-28 18:03:47 -0400
commit71fce386de7a2a51bd05a36ef1e2ae2e019d35b1 (patch)
treeade9526df2681fc8fbd2d5969c91cb439541c9c7
parent98bfe58b0c354ee5222b0e236be18dfbbde35854 (diff)
downloadgcc-71fce386de7a2a51bd05a36ef1e2ae2e019d35b1.zip
gcc-71fce386de7a2a51bd05a36ef1e2ae2e019d35b1.tar.gz
gcc-71fce386de7a2a51bd05a36ef1e2ae2e019d35b1.tar.bz2
(PIC_OFFEST_TABLE_REGNUM_SAVED): Define to %r4.
(CONDITIONAL_REGISTER_USAGE): Make it fixed when compiling PIC code. (INIT_EXPANDERS): Delete. From-SVN: r10087
-rw-r--r--gcc/config/pa/pa.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 3754263..3f1504b 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -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}}, \