[PATCH] Don't caller-save pseudos across calls that may throw (PR rtl-optimization/23478)
Richard Henderson
rth@redhat.com
Mon Aug 22 15:51:00 GMT 2005
On Mon, Aug 22, 2005 at 11:28:22AM -0400, Jakub Jelinek wrote:
> PR rtl-optimization/23478
> * regs.h (reg_info): Add throw_calls_crossed.
> (REG_N_THROWING_CALLS_CROSSED): Define.
> * flow.c (allocate_reg_life_data): Initialize
> REG_N_THROWING_CALLS_CROSSED.
> (propagate_one_insn, attempt_auto_inc): Update
> REG_N_THROWING_CALLS_CROSSED.
> * global.c (global_alloc): Don't allocate pseudos across
> calls that may throw.
> * g++.dg/opt/pr23478.C: New test.
Ok everywhere. This looks pretty safe.
r~
More information about the Gcc-patches
mailing list