summaryrefslogtreecommitdiffstats
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-13 20:17:45 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-13 20:17:45 +0000
commit14e6e4d4fe1ee53d182030644648dcddc54b0a6e (patch)
treec39d29448a716750181bae4b37680fbdc9397d5a /gcc/flow.c
parent64c28492c758a32ef08c0bd51c3b07dfbaa60541 (diff)
downloadppe42-gcc-14e6e4d4fe1ee53d182030644648dcddc54b0a6e.tar.gz
ppe42-gcc-14e6e4d4fe1ee53d182030644648dcddc54b0a6e.zip
* cse.c (cse_main): Converts ifdefs on PIC_OFFSET_TABLE_REGNUM to
conditionals. * defaults.h (PIC_OFFSET_TABLE_REGNUM): Default to INVALID_REGNUM. * emit-rtl.c (init_emit_once): Convert ifdefs to conditionals. * flow.c (mark_regs_live_at_end): Likewise. (calculate_global_regs_live): Likewise. * gcse.c (compute_hash_table): Likewise. (compute_kill_rd): Likewise. * resource.c (mark_target_live_regs): Likewise. * rtl.h (INVALID_REGNUM): New macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39643 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index aff84451e8d..d22540e2801 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -3345,15 +3345,14 @@ mark_regs_live_at_end (set)
#endif
}
-#ifdef PIC_OFFSET_TABLE_REGNUM
#ifndef PIC_OFFSET_TABLE_REG_CALL_CLOBBERED
/* Many architectures have a GP register even without flag_pic.
Assume the pic register is not in use, or will be handled by
other means, if it is not fixed. */
- if (fixed_regs[PIC_OFFSET_TABLE_REGNUM])
+ if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM
+ && fixed_regs[PIC_OFFSET_TABLE_REGNUM])
SET_REGNO_REG_SET (set, PIC_OFFSET_TABLE_REGNUM);
#endif
-#endif
/* Mark all global registers, and all registers used by the epilogue
as being live at the end of the function since they may be
@@ -3484,12 +3483,11 @@ calculate_global_regs_live (blocks_in, blocks_out, flags)
SET_REGNO_REG_SET (new_live_at_end, ARG_POINTER_REGNUM);
#endif
-#ifdef PIC_OFFSET_TABLE_REGNUM
/* Any constant, or pseudo with constant equivalences, may
require reloading from memory using the pic register. */
- if (fixed_regs[PIC_OFFSET_TABLE_REGNUM])
+ if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM
+ && fixed_regs[PIC_OFFSET_TABLE_REGNUM])
SET_REGNO_REG_SET (new_live_at_end, PIC_OFFSET_TABLE_REGNUM);
-#endif
}
/* Regs used in phi nodes are not included in
OpenPOWER on IntegriCloud