public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/51903] New: [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions
@ 2012-01-19 15:07 zsojka at seznam dot cz
2012-01-19 15:40 ` [Bug tree-optimization/51903] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2012-01-19 15:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51903
Bug #: 51903
Summary: [4.7 Regression] ICE: in
gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196
with -fnon-call-exceptions
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 26381
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26381
autoreduced testcase
Compiler output:
$ g++ -O2 -fno-guess-branch-probability -fnon-call-exceptions testcase.C
testcase.C: In function 'void foo()':
testcase.C:194:6: internal compiler error: in gimple_purge_all_dead_eh_edges,
at tree-cfg.c:7196
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
(gdb) bt
#0 fancy_abort (file=0x1457590 "/mnt/svn/gcc-trunk/gcc/tree-cfg.c", line=7196,
function=0x145b1d0 "gimple_purge_all_dead_eh_edges")
at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898
#1 0x0000000000ba2da5 in gimple_purge_all_dead_eh_edges (blocks=<optimized
out>) at /mnt/svn/gcc-trunk/gcc/tree-cfg.c:7196
#2 0x0000000000ca0dca in fini_pre (do_fre=true) at
/mnt/svn/gcc-trunk/gcc/tree-ssa-pre.c:4837
#3 execute_pre (do_fre=true) at /mnt/svn/gcc-trunk/gcc/tree-ssa-pre.c:4931
#4 execute_pre (do_fre=true) at /mnt/svn/gcc-trunk/gcc/tree-ssa-pre.c:4859
#5 0x0000000000a8b505 in execute_one_pass (pass=0x1b21a20) at
/mnt/svn/gcc-trunk/gcc/passes.c:2081
#6 0x0000000000a8b8c5 in execute_pass_list (pass=0x1b21a20) at
/mnt/svn/gcc-trunk/gcc/passes.c:2136
#7 0x0000000000a8b8d7 in execute_pass_list (pass=0x1995d40) at
/mnt/svn/gcc-trunk/gcc/passes.c:2137
#8 0x0000000000bed99e in tree_rest_of_compilation (fndecl=0x7ffff5c2a000) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:420
#9 0x0000000000840bba in cgraph_expand_function (node=0x7ffff5a96b40) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1818
#10 0x0000000000842a8c in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1885
#11 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2199
#12 0x00000000008430ea in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1327
#13 0x0000000000661823 in cp_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/cp/decl2.c:4051
#14 0x0000000000b8049c in compile_file () at
/mnt/svn/gcc-trunk/gcc/toplev.c:573
#15 do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1938
#16 toplev_main (argc=16, argv=0x7fffffffd818) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2014
#17 0x00007ffff61cc09d in __libc_start_main () from /lib64/libc.so.6
#18 0x0000000000585bc1 in _start ()
Nonreduced testcase:
#include <vector>
void foo ()
{
std::vector < std::vector< int > >(20000);
}
Tested revisions:
r183298 - crash
r183120 - crash
r182547 - OK
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/51903] [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions
2012-01-19 15:07 [Bug tree-optimization/51903] New: [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions zsojka at seznam dot cz
@ 2012-01-19 15:40 ` rguenth at gcc dot gnu.org
2012-01-19 15:41 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-19 15:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51903
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-19
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-19 15:20:04 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/51903] [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions
2012-01-19 15:07 [Bug tree-optimization/51903] New: [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions zsojka at seznam dot cz
2012-01-19 15:40 ` [Bug tree-optimization/51903] " rguenth at gcc dot gnu.org
@ 2012-01-19 15:41 ` rguenth at gcc dot gnu.org
2012-01-19 15:58 ` rguenther at suse dot de
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-19 15:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51903
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-19 15:25:36 UTC ---
I have a patch.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/51903] [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions
2012-01-19 15:07 [Bug tree-optimization/51903] New: [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions zsojka at seznam dot cz
2012-01-19 15:40 ` [Bug tree-optimization/51903] " rguenth at gcc dot gnu.org
2012-01-19 15:41 ` rguenth at gcc dot gnu.org
@ 2012-01-19 15:58 ` rguenther at suse dot de
2012-01-19 15:58 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenther at suse dot de @ 2012-01-19 15:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51903
--- Comment #4 from rguenther at suse dot de <rguenther at suse dot de> 2012-01-19 15:40:08 UTC ---
On Thu, 19 Jan 2012, jakub at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51903
>
> --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-19 15:32:28 UTC ---
> Created attachment 26382
> --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26382
> pr51903.C
>
> Slightly more reduced testcase.
I'm using the testcase with the #include.
Richard.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/51903] [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions
2012-01-19 15:07 [Bug tree-optimization/51903] New: [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions zsojka at seznam dot cz
` (2 preceding siblings ...)
2012-01-19 15:58 ` rguenther at suse dot de
@ 2012-01-19 15:58 ` jakub at gcc dot gnu.org
2012-01-20 10:25 ` rguenth at gcc dot gnu.org
2012-01-20 10:31 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-19 15:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51903
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-19 15:32:28 UTC ---
Created attachment 26382
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26382
pr51903.C
Slightly more reduced testcase.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/51903] [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions
2012-01-19 15:07 [Bug tree-optimization/51903] New: [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions zsojka at seznam dot cz
` (3 preceding siblings ...)
2012-01-19 15:58 ` jakub at gcc dot gnu.org
@ 2012-01-20 10:25 ` rguenth at gcc dot gnu.org
2012-01-20 10:31 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-20 10:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51903
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-20 10:10:54 UTC ---
Author: rguenth
Date: Fri Jan 20 10:10:46 2012
New Revision: 183329
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183329
Log:
2012-01-20 Richard Guenther <rguenther@suse.de>
PR tree-optimization/51903
* tree-ssa-pre.c (eliminate): Properly purging of EH edges
when removing stmts.
* g++.dg/torture/pr51903.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr51903.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-pre.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/51903] [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions
2012-01-19 15:07 [Bug tree-optimization/51903] New: [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions zsojka at seznam dot cz
` (4 preceding siblings ...)
2012-01-20 10:25 ` rguenth at gcc dot gnu.org
@ 2012-01-20 10:31 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-20 10:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51903
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-20 10:11:49 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-01-20 10:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-19 15:07 [Bug tree-optimization/51903] New: [4.7 Regression] ICE: in gimple_purge_all_dead_eh_edges, at tree-cfg.c:7196 with -fnon-call-exceptions zsojka at seznam dot cz
2012-01-19 15:40 ` [Bug tree-optimization/51903] " rguenth at gcc dot gnu.org
2012-01-19 15:41 ` rguenth at gcc dot gnu.org
2012-01-19 15:58 ` rguenther at suse dot de
2012-01-19 15:58 ` jakub at gcc dot gnu.org
2012-01-20 10:25 ` rguenth at gcc dot gnu.org
2012-01-20 10:31 ` rguenth at gcc dot gnu.org
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).