diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-04-13 21:55:15 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-04-13 21:55:15 +0200 |
commit | 465d00877e3d96ff827f02a699e7398ef62bef67 (patch) | |
tree | 7f4ab9bb1912581694938de5c77978fedb10f791 /gcc/except.c | |
parent | 9b91582429ca0b78f235e3c11b809a861b3d0f19 (diff) | |
download | gcc-465d00877e3d96ff827f02a699e7398ef62bef67.zip gcc-465d00877e3d96ff827f02a699e7398ef62bef67.tar.gz gcc-465d00877e3d96ff827f02a699e7398ef62bef67.tar.bz2 |
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
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/except.c b/gcc/except.c index 53e5773..ba42bf6 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -947,7 +947,7 @@ emit_to_new_bb_before (rtx_insn *seq, rtx_insn *insn) at the rtl level. Emit the code required by the target at a landing pad for the given region. */ -void +static void expand_dw2_landing_pad_for_region (eh_region region) { if (targetm.have_exception_receiver ()) |