This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Avoid extending reg lifetime when cprop_hardreg propagates into DEBUG_INSNs (PR debug/43161)


On Wed, Feb 24, 2010 at 8:57 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> @@ -446,6 +480,23 @@ replace_oldest_value_reg (rtx *loc, enum
> ? rtx new_rtx = find_oldest_value_reg (cl, *loc, vd);
> ? if (new_rtx)
> ? ? {
> + ? ? ?if (DEBUG_INSN_P (insn))
> + ? ? ? {
> + ? ? ? ? struct queued_debug_insn_change *change;
> +
> + ? ? ? ? if (dump_file)
> + ? ? ? ? ? fprintf (dump_file, "debug_insn %u: queued replacing reg %u with %u\n",
> + ? ? ? ? ? ? ? ? ? ?INSN_UID (insn), REGNO (*loc), REGNO (new_rtx));
> +
> + ? ? ? ? change = XNEW (struct queued_debug_insn_change);

Maybe use an alloc pool instead? Or an obstack that you clear per EBB?

Ciao!
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]