public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/12578] New: [tree-ssa] Segfault when optimizing switch statement
@ 2003-10-11 15:38 falk at debian dot org
2003-10-13 5:23 ` [Bug optimization/12578] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: falk at debian dot org @ 2003-10-11 15:38 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12578
Summary: [tree-ssa] Segfault when optimizing switch statement
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev68-unknown-linux-gnu
GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu
falk@juist:/tmp% cat min5.c
void trivial_regexp_p(int *s, int len)
{
while (--len) {
switch (*s++) {
case '\\':
switch (*s++) {
case '|':
;
}
}
}
}
falk@juist:/tmp% gcc -c -O min5.c -v
Reading specs from
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/specs
Configured with: ../configure --disable-nls --enable-languages=c++
Thread model: posix
gcc version 3.5-tree-ssa 20031009 (merged 20031005)
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/cc1 -quiet -v -iprefix /usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/ min5.c -quiet -dumpbase min5.c -mcpu=ev67 -auxbase min5 -O -version -o /tmp/cc4RLbEi.s
ignoring nonexistent directory
"/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../alphaev68-unknown-linux-gnu/include"
ignoring nonexistent directory "NONE/include"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../alphaev68-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/include
/usr/local/include
/usr/include
End of search list.
GNU C version 3.5-tree-ssa 20031009 (merged 20031005) (alphaev68-unknown-linux-gnu)
compiled by GNU C version 3.5-tree-ssa 20031009 (merged 20031005).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
min5.c: In function `trivial_regexp_p':
min5.c:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/12578] [tree-ssa] Segfault when optimizing switch statement
2003-10-11 15:38 [Bug optimization/12578] New: [tree-ssa] Segfault when optimizing switch statement falk at debian dot org
@ 2003-10-13 5:23 ` pinskia at gcc dot gnu dot org
2003-10-17 14:22 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-13 5:23 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12578
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |tree-ssa
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/12578] [tree-ssa] Segfault when optimizing switch statement
2003-10-11 15:38 [Bug optimization/12578] New: [tree-ssa] Segfault when optimizing switch statement falk at debian dot org
2003-10-13 5:23 ` [Bug optimization/12578] " pinskia at gcc dot gnu dot org
@ 2003-10-17 14:22 ` pinskia at gcc dot gnu dot org
2003-10-17 14:24 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 14:22 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12578
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-17 14:20:26
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 14:20 -------
Confirmed in 20031017.
: Search converges between 2003-09-19-ssa (#90) and 2003-09-22-ssa (#91).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/12578] [tree-ssa] Segfault when optimizing switch statement
2003-10-11 15:38 [Bug optimization/12578] New: [tree-ssa] Segfault when optimizing switch statement falk at debian dot org
2003-10-13 5:23 ` [Bug optimization/12578] " pinskia at gcc dot gnu dot org
2003-10-17 14:22 ` pinskia at gcc dot gnu dot org
@ 2003-10-17 14:24 ` pinskia at gcc dot gnu dot org
2003-10-17 19:55 ` pinskia at gcc dot gnu dot org
2004-08-08 23:17 ` [Bug tree-optimization/12578] " cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 14:24 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12578
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 14:22 -------
Here is the backtrace:
#0 handle_switch_fallthru (sw_stmt=0x40d90370, dest=0x0, new_bb=0x41016370) at /Users/
apinski/src/gccssa/src/gcc/tree-cfg.c:3662
#1 0x0022f8b0 in find_insert_location (src=0x41016670, dest=0x410165b0,
new_block=0x41016370, location=0xbfffec50) at /Users/apinski/src/gccssa/src/gcc/tree-cfg.c:
3919
#2 0x00230130 in bsi_insert_on_edge_immediate (e=0x41016670, stmt=0x410165b0,
old_bsi=0xbfffec50, created_block=0x40d90370) at /Users/apinski/src/gccssa/src/gcc/tree-
cfg.c:4106
#3 0x0022e9b4 in handle_switch_fallthru (sw_stmt=0xbfffec28, dest=0x40d90370,
new_bb=0xbfffecc0) at /Users/apinski/src/gccssa/src/gcc/tree-cfg.c:3667
#4 0x0022f8b0 in find_insert_location (src=0x410166d0, dest=0x410165b0,
new_block=0x410163d0, location=0xbfffee00) at /Users/apinski/src/gccssa/src/gcc/tree-cfg.c:
3919
#5 0x00230130 in bsi_insert_on_edge_immediate (e=0x410166d0, stmt=0x410165b0,
old_bsi=0xbfffee00, created_block=0x40d90398) at /Users/apinski/src/gccssa/src/gcc/tree-
cfg.c:4106
#6 0x00230a5c in bsi_commit_edge_inserts (update_annotations=138, new_blocks=0xbfffee68)
at /Users/apinski/src/gccssa/src/gcc/tree-cfg.c:4208
#7 0x001cb31c in rewrite_out_of_ssa (fndecl=0x40df5348, phase=TDI_optimized) at /Users/
apinski/src/gccssa/src/gcc/tree-ssa.c:1765
#8 0x00202e70 in optimize_function_tree (fndecl=0x40d90398) at /Users/apinski/src/gccssa/
src/gcc/tree-optimize.c:166
#9 0x002033fc in tree_rest_of_compilation (fndecl=0x40df5348, nested_p=false) at /Users/
apinski/src/gccssa/src/gcc/tree-optimize.c:304
#10 0x0001ef2c in c_expand_body_1 (fndecl=0x40df5348, nested_p=1090610128) at /Users/
apinski/src/gccssa/src/gcc/c-decl.c:6199
#11 0x0001f15c in c_expand_body (fndecl=0x8a) at /Users/apinski/src/gccssa/src/gcc/c-decl.c:
6229
#12 0x001faa80 in cgraph_expand_function (node=0x40df5a50) at /Users/apinski/src/gccssa/
src/gcc/cgraphunit.c:494
#13 0x001f9da0 in cgraph_assemble_pending_functions () at /Users/apinski/src/gccssa/src/gcc/
cgraphunit.c:141
#14 0x001f9f6c in cgraph_finalize_function (decl=0x40df5348, nested=false) at /Users/apinski/
src/gccssa/src/gcc/cgraphunit.c:217
#15 0x0001e964 in finish_function () at /Users/apinski/src/gccssa/src/gcc/c-decl.c:6155
#16 0x00004e00 in yyparse () at c-parse.y:386
#17 0x0000ad80 in c_parse_file () at c-parse.y:3033
#18 0x000538a8 in c_common_parse_file (set_yydebug=138) at /Users/apinski/src/gccssa/src/
gcc/c-opts.c:1221
#19 0x000bd504 in compile_file () at /Users/apinski/src/gccssa/src/gcc/toplev.c:1836
#20 0x000c20c0 in do_compile () at /Users/apinski/src/gccssa/src/gcc/toplev.c:4543
#21 0x000c2200 in toplev_main (argc=21, argv=0xc8) at /Users/apinski/src/gccssa/src/gcc/
toplev.c:4583
#22 0x0008a66c in main (argc=138, argv=0x410163d0) at /Users/apinski/src/gccssa/src/gcc/
main.c:35
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug optimization/12578] [tree-ssa] Segfault when optimizing switch statement
2003-10-11 15:38 [Bug optimization/12578] New: [tree-ssa] Segfault when optimizing switch statement falk at debian dot org
` (2 preceding siblings ...)
2003-10-17 14:24 ` pinskia at gcc dot gnu dot org
@ 2003-10-17 19:55 ` pinskia at gcc dot gnu dot org
2004-08-08 23:17 ` [Bug tree-optimization/12578] " cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 19:55 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12578
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 19:52 -------
Closing as fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/12578] [tree-ssa] Segfault when optimizing switch statement
2003-10-11 15:38 [Bug optimization/12578] New: [tree-ssa] Segfault when optimizing switch statement falk at debian dot org
` (3 preceding siblings ...)
2003-10-17 19:55 ` pinskia at gcc dot gnu dot org
@ 2004-08-08 23:17 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-08 23:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-08 23:17 -------
Subject: Bug 12578
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: falk@gcc.gnu.org 2004-08-08 23:17:23
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.c-torture/compile: pr12517.c pr12578.c
pr12899.c pr14692.c
pr16461.c
Log message:
PR tree-optimization/12517
* gcc.c-torture/compile/pr12517.c: New test.
PR tree-optimization/12578
* gcc.c-torture/compile/pr12578.c: New test.
PR tree-optimization/12899
* gcc.c-torture/compile/pr12899.c: New test.
PR rtl-optimization/14692
* gcc.c-torture/compile/pr14692.c: New test.
PR tree-optimization/16461
* gcc.c-torture/compile/pr16461.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4108&r2=1.4109
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr12517.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr12578.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr12899.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr14692.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/pr16461.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12578
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-08-08 23:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-11 15:38 [Bug optimization/12578] New: [tree-ssa] Segfault when optimizing switch statement falk at debian dot org
2003-10-13 5:23 ` [Bug optimization/12578] " pinskia at gcc dot gnu dot org
2003-10-17 14:22 ` pinskia at gcc dot gnu dot org
2003-10-17 14:24 ` pinskia at gcc dot gnu dot org
2003-10-17 19:55 ` pinskia at gcc dot gnu dot org
2004-08-08 23:17 ` [Bug tree-optimization/12578] " cvs-commit at gcc dot gnu dot 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).