re PR rtl-optimization/85393 (Miscompilation with hot/cold partitioning starting...
authorJakub Jelinek <jakub@redhat.com>
Fri, 13 Apr 2018 19:55:15 +0000 (21:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 13 Apr 2018 19:55:15 +0000 (21:55 +0200)
commit465d00877e3d96ff827f02a699e7398ef62bef67
tree7f4ab9bb1912581694938de5c77978fedb10f791
parent9b91582429ca0b78f235e3c11b809a861b3d0f19
re PR rtl-optimization/85393 (Miscompilation with hot/cold partitioning starting with r254832)

PR rtl-optimization/85393
* except.h (expand_dw2_landing_pad_for_region): Remove declaration.
* except.c (expand_dw2_landing_pad_for_region): Make static.
* bb-reorder.c (fix_up_crossing_landing_pad): In new_bb emit just
a label and unconditional jump to old_bb, rather than
expand_dw2_landing_pad_for_region insn(s) and jump to single_succ
basic block.

* g++.dg/opt/pr85393.C: New test.
* g++.dg/opt/pr85393-aux.cc: New file.

From-SVN: r259378
gcc/ChangeLog
gcc/bb-reorder.c
gcc/except.c
gcc/except.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr85393-aux.cc [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/pr85393.C [new file with mode: 0644]