This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't caller-save pseudos across calls that may throw (PR rtl-optimization/23478)
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 22 Aug 2005 08:46:37 -0700
- Subject: Re: [PATCH] Don't caller-save pseudos across calls that may throw (PR rtl-optimization/23478)
- References: <20050822152822.GV7403@devserv.devel.redhat.com>
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~