public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions
@ 2010-12-23 15:50 zsojka at seznam dot cz
  2010-12-23 15:56 ` [Bug tree-optimization/47053] " steven at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-12-23 15:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

           Summary: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB
                    2 can not throw but has an EH edge with -O
                    -fnon-call-exceptions
           Product: gcc
           Version: 4.6.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 22847
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22847
reduced testcase

Compiler output:
$ gcc -O -fnon-call-exceptions pr47053.C 
pr47053.C: In function 'void foo()':
pr47053.C:17:6: error: BB 2 can not throw but has an EH edge
pr47053.C:17:6: 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.

(gdb) bt
#0  error (gmsgid=0x12db400 "BB %i can not throw but has an EH edge") at
/mnt/svn/gcc-trunk/gcc/diagnostic.c:747
#1  0x0000000000a5b65c in verify_eh_edges (stmt=0x7ffff5d71160) at
/mnt/svn/gcc-trunk/gcc/tree-eh.c:3997
#2  0x0000000000a2fcbb in gimple_verify_flow_info () at
/mnt/svn/gcc-trunk/gcc/tree-cfg.c:4538
#3  0x0000000000733384 in verify_flow_info () at
/mnt/svn/gcc-trunk/gcc/cfghooks.c:257
#4  0x0000000000b210f0 in fini_reassoc () at
/mnt/svn/gcc-trunk/gcc/tree-ssa-reassoc.c:2247
#5  execute_reassoc () at /mnt/svn/gcc-trunk/gcc/tree-ssa-reassoc.c:2260
#6  0x000000000093a2e6 in execute_one_pass (pass=0x17baee0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1553
#7  0x000000000093a5d5 in execute_pass_list (pass=0x17baee0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1608
#8  0x000000000093a5e7 in execute_pass_list (pass=0x17b9d40) at
/mnt/svn/gcc-trunk/gcc/passes.c:1609
#9  0x0000000000a7a846 in tree_rest_of_compilation (fndecl=0x7ffff5d31b00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#10 0x0000000000c3fd72 in cgraph_expand_function (node=0x7ffff5d3bc60) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1508
#11 0x0000000000c4244a in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1567
#12 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1827
#13 0x0000000000c429ca in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1031
#14 0x00000000005b786d in cp_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/cp/decl2.c:3974
#15 0x0000000000a240b6 in compile_file (argc=15, argv=0x7fffffffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#16 do_compile (argc=15, argv=0x7fffffffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1874
#17 toplev_main (argc=15, argv=0x7fffffffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1937
#18 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6
#19 0x00000000004fe9ed in _start ()

Tetsted revisions:
r168200 - crash
4.5 r168062 - crash
4.4 r168062 - OK


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/47053] [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions
  2010-12-23 15:50 [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions zsojka at seznam dot cz
@ 2010-12-23 15:56 ` steven at gcc dot gnu.org
  2010-12-27 19:05 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu.org @ 2010-12-23 15:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2010.12.23 15:55:50
                 CC|                            |steven at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |steven at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Steven Bosscher <steven at gcc dot gnu.org> 2010-12-23 15:55:50 UTC ---
Probably one of the remaining tree-ssa-phiopt.c issues mentioned by Richi.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/47053] [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions
  2010-12-23 15:50 [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions zsojka at seznam dot cz
  2010-12-23 15:56 ` [Bug tree-optimization/47053] " steven at gcc dot gnu.org
@ 2010-12-27 19:05 ` jakub at gcc dot gnu.org
  2011-01-03 21:36 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-27 19:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.5.3


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/47053] [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions
  2010-12-23 15:50 [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions zsojka at seznam dot cz
  2010-12-23 15:56 ` [Bug tree-optimization/47053] " steven at gcc dot gnu.org
  2010-12-27 19:05 ` jakub at gcc dot gnu.org
@ 2011-01-03 21:36 ` rguenth at gcc dot gnu.org
  2011-01-03 22:37 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-03 21:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/47053] [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions
  2010-12-23 15:50 [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2011-01-03 21:36 ` rguenth at gcc dot gnu.org
@ 2011-01-03 22:37 ` hjl.tools at gmail dot com
  2011-01-21 19:00 ` law at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-03 22:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-03 22:37:36 UTC ---
It is caused by revision 151559:

http://gcc.gnu.org/ml/gcc-cvs/2009-09/msg00305.html


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/47053] [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions
  2010-12-23 15:50 [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2011-01-03 22:37 ` hjl.tools at gmail dot com
@ 2011-01-21 19:00 ` law at redhat dot com
  2011-01-22  9:41 ` law at gcc dot gnu.org
  2011-01-22 11:12 ` law at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: law at redhat dot com @ 2011-01-21 19:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com
         AssignedTo|steven at gcc dot gnu.org   |law at redhat dot com

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> 2011-01-21 18:16:08 UTC ---
I've got a patch.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/47053] [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions
  2010-12-23 15:50 [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2011-01-21 19:00 ` law at redhat dot com
@ 2011-01-22  9:41 ` law at gcc dot gnu.org
  2011-01-22 11:12 ` law at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: law at gcc dot gnu.org @ 2011-01-22  9:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

--- Comment #4 from Jeffrey A. Law <law at gcc dot gnu.org> 2011-01-22 04:09:53 UTC ---
Author: law
Date: Sat Jan 22 04:09:44 2011
New Revision: 169123

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169123
Log:

    PR tree-optimization/47053
    * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
    (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
    statements are deleted.
    (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
    is nonempty, then purge dead edges and cleanup the CFG.

    PR tree-optimization/47053
    * g++.dg/pr47053.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/pr47053.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-dse.c


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug tree-optimization/47053] [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions
  2010-12-23 15:50 [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2011-01-22  9:41 ` law at gcc dot gnu.org
@ 2011-01-22 11:12 ` law at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: law at redhat dot com @ 2011-01-22 11:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.5.3                       |4.6.0

--- Comment #5 from Jeffrey A. Law <law at redhat dot com> 2011-01-22 04:10:25 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-22  4:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-23 15:50 [Bug tree-optimization/47053] New: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions zsojka at seznam dot cz
2010-12-23 15:56 ` [Bug tree-optimization/47053] " steven at gcc dot gnu.org
2010-12-27 19:05 ` jakub at gcc dot gnu.org
2011-01-03 21:36 ` rguenth at gcc dot gnu.org
2011-01-03 22:37 ` hjl.tools at gmail dot com
2011-01-21 19:00 ` law at redhat dot com
2011-01-22  9:41 ` law at gcc dot gnu.org
2011-01-22 11:12 ` law at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).