summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-07-18 18:14:45 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-07-18 18:14:45 +0000
commitc2fe98a236683c6f19c55a322c43b0b95231da22 (patch)
tree7cacc739010ce6faf56d4753f4f01717a3ccc629
parentc35426ad97986156c2c4ce16c14faf75d3958cfb (diff)
Revert last change of the 990629: this breaks m68k pic code.
More recent snapshots seem to have this fixed properly, wait until u a complete shake-out has been run
-rw-r--r--gnu/egcs/gcc/config/m68k/m68k.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/gnu/egcs/gcc/config/m68k/m68k.h b/gnu/egcs/gcc/config/m68k/m68k.h
index 9a58f1db6be..8152cddb8b5 100644
--- a/gnu/egcs/gcc/config/m68k/m68k.h
+++ b/gnu/egcs/gcc/config/m68k/m68k.h
@@ -341,6 +341,11 @@ extern int target_flags;
/* This defines the register which is used to hold the offset table for PIC. */
#define PIC_OFFSET_TABLE_REGNUM 13
+/* Used to output a (use pic_offset_table_rtx) so that we
+ always save/restore a5 in functions that use PIC relocation
+ at *any* time during the compilation process. */
+#define FINALIZE_PIC finalize_pic()
+
#ifndef SUPPORT_SUN_FPA
/* 1 for registers that have pervasive standard uses
@@ -441,17 +446,8 @@ extern int target_flags;
if (TEST_HARD_REG_BIT (x, i)) \
fixed_regs[i] = call_used_regs[i] = 1; \
} \
- if (flag_pic) \
- fixed_regs[PIC_OFFSET_TABLE_REGNUM] \
- = call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1;\
-}
-#else
-#define CONDITIONAL_REGISTER_USAGE \
-{ \
- if (flag_pic) \
- fixed_regs[PIC_OFFSET_TABLE_REGNUM] \
- = call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1;\
}
+
#endif /* defined SUPPORT_SUN_FPA */
/* Return number of consecutive hard regs needed starting at reg REGNO