re PR debug/84875 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2348 on s390x)
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Mar 2018 21:07:13 +0000 (22:07 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Mar 2018 21:07:13 +0000 (22:07 +0100)
commit6f21dc3c4f987a9d4abd3b0c1c46d8d8a16a3465
tree468156d990c6bc0e8476053962782e524467b5c4
parent1efb1dc2d893db2fa8f15945d506410aab628b60
re PR debug/84875 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2348 on s390x)

PR debug/84875
* dce.c (delete_unmarked_insns): Don't remove frame related noop moves
holding REG_CFA_RESTORE notes, instead turn them into a USE.

* gcc.dg/pr84875.c: New test.

From-SVN: r258692
gcc/ChangeLog
gcc/dce.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84875.c [new file with mode: 0644]