diff options
author | David Daney <ddaney@caviumnetworks.com> | 2009-07-25 20:25:18 +0000 |
---|---|---|
committer | David Daney <daney@gcc.gnu.org> | 2009-07-25 20:25:18 +0000 |
commit | 1e211590c3288acd5ea6ff4edb94a1efd5ec25f7 (patch) | |
tree | 697b3a3928c509ec1d15830956e5fd590de886f9 /gcc/cfgrtl.c | |
parent | ba21aba3e53b2f9e9e365eb8bfe6f40b88cd6dca (diff) | |
download | gcc-1e211590c3288acd5ea6ff4edb94a1efd5ec25f7.zip gcc-1e211590c3288acd5ea6ff4edb94a1efd5ec25f7.tar.gz gcc-1e211590c3288acd5ea6ff4edb94a1efd5ec25f7.tar.bz2 |
re PR rtl-optimization/40445 (g++ void f() { __builtin_unreachable(); })
2009-07-25 David Daney <ddaney@caviumnetworks.com>
PR rtl-optimization/40445
* emit-rtl.c (next_nonnote_insn_bb): New function.
* rtl.h (next_nonnote_insn_bb): Declare new function.
* cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
with no successors that is the successor of the ENTRY_BLOCK.
Continue from the top after removing an empty fallthrough block.
* cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
of next_nonnote_insn.
2009-07-25 David Daney <ddaney@caviumnetworks.com>
PR rtl-optimization/40445
* g++.dg/other/builtin-unreachable-1.C: New testcase.
From-SVN: r150090
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 78df3ff..3c877c2 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1712,11 +1712,11 @@ get_last_bb_insn (basic_block bb) end = tmp; /* Include any barriers that may follow the basic block. */ - tmp = next_nonnote_insn (end); + tmp = next_nonnote_insn_bb (end); while (tmp && BARRIER_P (tmp)) { end = tmp; - tmp = next_nonnote_insn (end); + tmp = next_nonnote_insn_bb (end); } return end; |