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 <seg...@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