re PR target/80102 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2330)
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 Mar 2017 21:00:35 +0000 (23:00 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 Mar 2017 21:00:35 +0000 (23:00 +0200)
commitaade772d8a2eeda4ea22f0ca648ebdf44d8d8c15
tree580908125ff2f800b4a09a1179d95a53ebb8aa20
parente298b56acbe3e2534767462937d5674978979683
re PR target/80102 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2330)

PR target/80102
* reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
notes.
* cfgcleanup.c (reg_note_cfa_p): New array.
(insns_have_identical_cfa_notes): New function.
(old_insns_match_p): Don't cross-jump in between /f
and non-/f instructions.  If both i1 and i2 are frame related,
verify all CFA notes, their order and content.

* g++.dg/opt/pr80102.C: New test.

From-SVN: r246511
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/reg-notes.def
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr80102.C [new file with mode: 0644]