diff options
author | Richard Henderson <rth@cygnus.com> | 1998-07-21 01:54:29 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1998-07-21 01:54:29 -0700 |
commit | bd80fbde8eb422f5afdbfbcace63db46c80e44bf (patch) | |
tree | ee3c58945965b8be574214e023518662b3638e86 /gcc/flow.c | |
parent | 50ea20cfa8f01bff548cb6a4b655f76fb1f09863 (diff) | |
download | gcc-bd80fbde8eb422f5afdbfbcace63db46c80e44bf.tar.gz |
* flow.c (regno_uninitialized): Fixed regs are never uninitialized.
From-SVN: r21321
Diffstat (limited to 'gcc/flow.c')
-rw-r--r-- | gcc/flow.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/flow.c b/gcc/flow.c index 43ea11d8adc..0e3b044a830 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -2030,10 +2030,10 @@ libcall_dead_p (x, needed, note, insn) return 1; } -/* Return 1 if register REGNO was used before it was set. - In other words, if it is live at function entry. - Don't count global register variables or variables in registers - that can be used for function arg passing, though. */ +/* Return 1 if register REGNO was used before it was set, i.e. if it is + live at function entry. Don't count global register variables, variables + in registers that can be used for function arg passing, or variables in + fixed hard registers. */ int regno_uninitialized (regno) @@ -2041,7 +2041,9 @@ regno_uninitialized (regno) { if (n_basic_blocks == 0 || (regno < FIRST_PSEUDO_REGISTER - && (global_regs[regno] || FUNCTION_ARG_REGNO_P (regno)))) + && (global_regs[regno] + || fixed_regs[regno] + || FUNCTION_ARG_REGNO_P (regno)))) return 0; return REGNO_REG_SET_P (basic_block_live_at_start[0], regno); |