Bug 35261 - GCC4.3 internal compiler error: verify_flow_info failed
: GCC4.3 internal compiler error: verify_flow_info failed
Status: WAITING
Product: gcc
Classification: Unclassified
Component: tree-optimization
: 4.3.0
: P3 normal
: ---
Assigned To: Not yet assigned to anyone
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-02-20 15:38 UTC by Rajiv Adhikary
Modified: 2011-09-19 17:51 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Source File with the problem (2.97 KB, text/plain)
2008-02-20 15:39 UTC, Rajiv Adhikary
Details
bug.ii (163 bytes, text/plain)
2008-04-15 19:17 UTC, Harald van Dijk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rajiv Adhikary 2008-02-20 15:38:07 UTC
Compiling using GCC4.3 with

            g++ -msse4.1 -O2 -c  repro.cpp

causes internal compiler error:

repro.cpp: In function 'int main()':
repro.cpp:122: error: BB 10 can not throw but has EH edges
repro.cpp:122: 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.



In this file the error goes away if you change

            const static repro_u32 LOOP_COUNT = 100 * 1000;

to

            const static repro_s32 LOOP_COUNT = 100 * 1000;

 Alternately if I remove the creation of Timer object (comment out Timer t(
pass, expCycles ); ) the problem goes away.
Comment 1 Rajiv Adhikary 2008-02-20 15:39:09 UTC
Created attachment 15186 [details]
Source File with the problem
Comment 2 Harald van Dijk 2008-04-15 19:17:47 UTC
Created attachment 15479 [details]
bug.ii

I ran into this same error with different code, which I posted to
<http://gcc.gnu.org/ml/gcc-help/2008-04/msg00190.html> but reduced further to
the attached. It, like the original code, fails with GCC 4.3.0, GCC
4.3-20080410, and GCC-4.4-20080411, when GCC is configured with
--enable-checking. gcc -c -O is enough to show it with this:

$ ~/gcc/bin/gcc -c -O bug.ii
bug.ii: In function ‘void h()’:
bug.ii:7: error: BB 13 can not throw but has EH edges
bug.ii:7: 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.
$ ~/gcc/bin/gcc --version
gcc (GCC) 4.4.0 20080411 (experimental)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 3 Andrew Pinski 2008-12-28 06:52:04 UTC
Both of these work on the trunk on i386-darwin8.11, Do you know if it works on
the 4.3 branch?
Comment 4 Dmitry Gorbachev 2011-09-18 23:54:58 UTC
4.3 is not maintained -- should this bug be closed?
Comment 5 Harald van Dijk 2011-09-19 17:51:44 UTC
My testcase failed with 4.3 and 4.4. 4.3.6 still rejects it, but it seems to be
accepted by 4.4.6, so if 4.3 is no longer maintained, this looks fixed.