Created attachment 22375 [details] reduced testcase (from gcc.dg/tree-ssa/pr17141-2.c) Compiler output: $ gcc -O -fstack-protector-all -fno-tree-dominator-opts -fno-tree-fre pr46440.c pr46440.c: In function 'foo': pr46440.c:16:1: error: verify_flow_info: Incorrect fallthru 2->3 pr46440.c:16:1: error: wrong insn in the fallthru edge (barrier 15 24 33) pr46440.c:16:1: internal compiler error: in rtl_verify_flow_info, at cfgrtl.c:2165 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r166509 - crash r153685 - crash 4.5 r166509 - crash 4.4 r166509 - OK
Caused by r145283.
Created attachment 22398 [details] gcc46-pr46440.patch Untested fix.
Author: jakub Date: Wed Nov 17 13:02:31 2010 New Revision: 166867 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166867 Log: PR rtl-optimization/46440 * combine.c (update_cfg_for_uncondjump): When changing an indirect jump into unconditional jump, remove BARRIERs from bb's footer. * gcc.dg/pr46440.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr46440.c Modified: trunk/gcc/ChangeLog trunk/gcc/combine.c trunk/gcc/testsuite/ChangeLog
Fixed for 4.6 so far.
Author: jakub Date: Tue Dec 7 15:08:54 2010 New Revision: 167539 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167539 Log: Backport from mainline 2010-11-17 Jakub Jelinek <jakub@redhat.com> PR rtl-optimization/46440 * combine.c (update_cfg_for_uncondjump): When changing an indirect jump into unconditional jump, remove BARRIERs from bb's footer. * gcc.dg/pr46440.c: New test. Added: branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/pr46440.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/combine.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
Fixed.