[PATCH 2/5] dce: Don't dead-code delete separately wrapped restores

Jeff Law law@redhat.com
Mon Sep 26 16:55:00 GMT 2016


On 09/23/2016 02:21 AM, Segher Boessenkool wrote:
> If there is a separately wrapped register restore on some path that
> is dead (say, control goes into an endless loop after it), then we
> cannot delete that restore because that would confuse the DWARF CFI
> (if there is another path joining after this).
> This happens with gcc.dg/torture/pr53168.c, for example.
>
>
> 2016-09-23  Segher Boessenkool  <segher@kernel.crashing.org>
>
> 	* dce.c (delete_unmarked_insns): Don't delete instructions with
> 	a REG_CFA_RESTORE note.
OK and can go in now IMHO.
jeff



More information about the Gcc-patches mailing list