This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/12578] [tree-ssa] Segfault when optimizing switch statement


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]