This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/51396] New: [4.7 Regression] ICE: verify_flow_info failed: BB 4 can not throw but has an EH edge with -O2 -fnon-call-exceptions -mfma4
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Dec 2011 20:42:17 +0000
- Subject: [Bug tree-optimization/51396] New: [4.7 Regression] ICE: verify_flow_info failed: BB 4 can not throw but has an EH edge with -O2 -fnon-call-exceptions -mfma4
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51396
Bug #: 51396
Summary: [4.7 Regression] ICE: verify_flow_info failed: BB 4
can not throw but has an EH edge with -O2
-fnon-call-exceptions -mfma4
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 25982
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25982
reduced testcase
Compiler output:
$ gcc -O2 -fnon-call-exceptions -mfma4 testcase.C
testcase.C: In function 'void pow2(int, complex)':
testcase.C:17:1: error: BB 4 can not throw but has an EH edge
testcase.C:17:1: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Originally, it crashed with:
$ head -n 1 tmp.ii
# 1
"/mnt/svn/gcc-trunk/libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/overloads_int.cc"
$ gcc -O2 -fnon-call-exceptions -mfma4 tmp.ii
/mnt/svn/gcc-trunk/libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
In function 'void test01()':
/mnt/svn/gcc-trunk/libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:26:6:
internal compiler error: in expand_builtin_eh_common, at except.c:1953
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r181968 - crash
4.6 r180325 - OK