diff options
author | J"orn Rennecke <joern.rennecke@st.com> | 2005-05-13 16:56:11 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2005-05-13 17:56:11 +0100 |
commit | 2d6c85d31464e0e26c381728795d959b14facf36 (patch) | |
tree | 13100fc3273a13143ae4328a09cbb1accb1ec438 /gcc/integrate.c | |
parent | 30e5a198438e9b3e70aa7f668e9bf747424098b3 (diff) | |
download | gcc-2d6c85d31464e0e26c381728795d959b14facf36.zip gcc-2d6c85d31464e0e26c381728795d959b14facf36.tar.gz gcc-2d6c85d31464e0e26c381728795d959b14facf36.tar.bz2 |
re PR rtl-optimization/20769 (bt-load.c doesn't take nonlocal gotos into account.)
PR rtl-optimization/20769:
* bt-load.c (compute_defs_uses_and_gen): Check for the blockage
pattern emitted by expand_nl_goto_receiver.
PR middle-end/20793:
* integrate.c (allocate_initial_values): Update register liveness
information.
From-SVN: r99668
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 86bb875..3573b44 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -392,11 +392,23 @@ allocate_initial_values (rtx *reg_equiv_memory_loc ATTRIBUTE_UNUSED) reg_equiv_memory_loc[regno] = x; else { + basic_block bb; + int new_regno; + gcc_assert (REG_P (x)); - reg_renumber[regno] = REGNO (x); + new_regno = REGNO (x); + reg_renumber[regno] = new_regno; /* Poke the regno right into regno_reg_rtx so that even fixed regs are accepted. */ - REGNO (ivs->entries[i].pseudo) = REGNO (x); + REGNO (ivs->entries[i].pseudo) = new_regno; + /* Update global register liveness information. */ + FOR_EACH_BB (bb) + { + if (REGNO_REG_SET_P(bb->global_live_at_start, regno)) + SET_REGNO_REG_SET (bb->global_live_at_start, new_regno); + if (REGNO_REG_SET_P(bb->global_live_at_end, regno)) + SET_REGNO_REG_SET (bb->global_live_at_end, new_regno); + } } } } |