From 71fce386de7a2a51bd05a36ef1e2ae2e019d35b1 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 28 Jun 1995 18:03:47 -0400 Subject: [PATCH] (PIC_OFFEST_TABLE_REGNUM_SAVED): Define to %r4. (CONDITIONAL_REGISTER_USAGE): Make it fixed when compiling PIC code. (INIT_EXPANDERS): Delete. From-SVN: r10087 --- gcc/config/pa/pa.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 3754263f124..3f1504b02b3 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}}, \ -- 2.30.2