PR target/80102
commit7f8986ec52c474a5e2ebd7e6739fef2095047ac2
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Mar 2017 21:00:35 +0000 (27 21:00 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Mar 2017 21:00:35 +0000 (27 21:00 +0000)
tree580908125ff2f800b4a09a1179d95a53ebb8aa20
parentadbfc349dfd6f85903ee74c1758d0130773740b0
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246511 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/reg-notes.def
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr80102.C [new file with mode: 0644]