public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand @ 2004-02-15 22:07 steven at gcc dot gnu dot org 2004-02-15 22:07 ` [Bug middle-end/14153] " steven at gcc dot gnu dot org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: steven at gcc dot gnu dot org @ 2004-02-15 22:07 UTC (permalink / raw) To: gcc-bugs GNU C version 3.5-tree-ssa 20040214 (merged 20040211) (i686-pc-linux-gnu) compiled by GNU C version 3.5-tree-ssa 20040214 (merged 20040211). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 -------------------------- typedef union tree_node *tree; struct tree_exp { tree operands[1]; }; union tree_node { struct tree_exp exp; }; extern tree global_trees; typedef struct { tree *tp; } tree_stmt_iterator; static __inline__ _Bool tsi_end_p (tree_stmt_iterator i) { return (i.tp == ((void *) 0) || *(i.tp) == global_trees); } static __inline__ void tsi_next (tree_stmt_iterator * i) { tree t = *(i->tp); i->tp = &t->exp.operands[1]; } extern int is_gimple_stmt (tree); extern void abort (); void dump_generic_node (tree node) { tree_stmt_iterator si; if (is_gimple_stmt (node) == 0) abort (); si.tp = &node->exp.operands[1]; while (1) if (tsi_end_p (si)) tsi_next (&si); } -------------------------- Starting program: /home/steven/devel/tree-ssa-build/gcc/cc1 -O test.c tsi_end_p tsi_next dump_generic_node Program received signal SIGSEGV, Segmentation fault. 0x080f92b7 in add_stmt_operand (var_p=0x4020e408, stmt=0x40210dec, flags=0, prev_vops=0xbfffe580) at ../../tree-ssa/gcc/tree-ssa-operands.c:1132 1132 STRIP_NOPS (var); (gdb) p var $1 = 0x0 (gdb) bt #0 0x080f92b7 in add_stmt_operand (var_p=0x4020d408, stmt=0x40210dc8, flags=0, prev_vops=0xbfffe580) at ../../tree-ssa/gcc/tree-ssa-operands.c:1132 #1 0x080fa168 in get_expr_operands (stmt=0x40210dc8, expr_p=Variable "expr_p" is not available. ) at ../../tree-ssa/gcc/tree-ssa-operands.c:944 #2 0x080fae09 in get_stmt_operands (stmt=0x40210dc8) at ../../tree-ssa/gcc/ tree-ssa-operands.c:711 #3 0x080ead8d in subst_phis (ei=0x4020de60, Z=0x40210da4, pred=0x4020e89c, bb=0x40211bc8) at ../../tree-ssa/gcc/tree-ssa-pre.c:1291 #4 0x080ed0bc in finalize_1 (ei=0x4020de60) at ../../tree-ssa/gcc/ tree-ssa-pre.c:2098 #5 0x080efecb in pre_expression (slot=0x4020de60, data=Variable "data" is not available. ) at ../../tree-ssa/gcc/tree-ssa-pre.c:3137 #6 0x080f2517 in execute_pre () at ../../tree-ssa/gcc/tree-ssa-pre.c:3325 #7 0x080c6709 in execute_pass_list (pass=0x84a7740) at ../../tree-ssa/gcc/ tree-optimize.c:400 #8 0x080c677e in execute_pass_list (pass=0x84a74c0) at ../../tree-ssa/gcc/ tree-optimize.c:430 #9 0x080c6a8a in tree_rest_of_compilation (fndecl=0x4020a0e8, nested_p=false) at ../../tree-ssa/gcc/tree-optimize.c:520 #10 0x08062396 in c_expand_body_1 (fndecl=0x4020a0e8, nested_p=0) at ../../ tree-ssa/gcc/c-decl.c:6205 #11 0x0806257e in c_expand_body (fndecl=0x0) at ../../tree-ssa/gcc/ c-decl.c:6237 #12 0x0838798d in cgraph_expand_function (node=0x4020a9f8) at ../../tree-ssa/ gcc/cgraphunit.c:787 #13 0x08387b23 in cgraph_assemble_pending_functions () at ../../tree-ssa/gcc/ cgraphunit.c:287 #14 0x0838815c in cgraph_finalize_function (decl=0x4020a0e8, nested=false) at ../../tree-ssa/gcc/cgraphunit.c:368 #15 0x080626bc in c_finalize (fndecl=0x4020a0e8) at ../../tree-ssa/gcc/ c-decl.c:6037 #16 0x08062a78 in finish_function () at ../../tree-ssa/gcc/c-decl.c:6150 #17 0x0804bd98 in yyparse () at c-parse.y:349 #18 0x08051d0b in c_parse_file () at c-parse.y:2830 #19 0x0809234f in c_common_parse_file (set_yydebug=1075893256) at ../../ tree-ssa/gcc/c-opts.c:1227 #20 0x08338954 in toplev_main (argc=1075893256, argv=0xbffff274) at ../../ tree-ssa/gcc/toplev.c:1870 #21 0x080a8f5e in main (argc=1075893256, argv=0x4020d408) at ../../tree-ssa/ gcc/main.c:35 (gdb) -- Summary: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P2 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: steven at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14153 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/14153] [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand 2004-02-15 22:07 [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand steven at gcc dot gnu dot org @ 2004-02-15 22:07 ` steven at gcc dot gnu dot org 2004-02-15 22:11 ` [Bug optimization/14153] " pinskia at gcc dot gnu dot org ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: steven at gcc dot gnu dot org @ 2004-02-15 22:07 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From steven at gcc dot gnu dot org 2004-02-15 22:07 ------- This test case comes from a piece of old tree-ssa code. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |dnovillo at redhat dot com Keywords| |ice-on-valid-code Target Milestone|--- |tree-ssa http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14153 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/14153] [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand 2004-02-15 22:07 [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand steven at gcc dot gnu dot org 2004-02-15 22:07 ` [Bug middle-end/14153] " steven at gcc dot gnu dot org @ 2004-02-15 22:11 ` pinskia at gcc dot gnu dot org 2004-02-15 22:19 ` pinskia at gcc dot gnu dot org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-02-15 22:11 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Severity|normal |critical Component|middle-end |optimization http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14153 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/14153] [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand 2004-02-15 22:07 [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand steven at gcc dot gnu dot org 2004-02-15 22:07 ` [Bug middle-end/14153] " steven at gcc dot gnu dot org 2004-02-15 22:11 ` [Bug optimization/14153] " pinskia at gcc dot gnu dot org @ 2004-02-15 22:19 ` pinskia at gcc dot gnu dot org 2004-02-15 22:56 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-02-15 22:19 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-15 22:19 ------- Confirmed on 20040214 but note 20040208 worked just fine. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-02-15 22:19:29 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14153 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/14153] [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand 2004-02-15 22:07 [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand steven at gcc dot gnu dot org ` (2 preceding siblings ...) 2004-02-15 22:19 ` pinskia at gcc dot gnu dot org @ 2004-02-15 22:56 ` pinskia at gcc dot gnu dot org 2004-02-16 15:08 ` dnovillo at gcc dot gnu dot org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-02-15 22:56 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-15 22:56 ------- This is related to bug 14029. -- What |Removed |Added ---------------------------------------------------------------------------- Known to work| |3.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14153 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/14153] [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand 2004-02-15 22:07 [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand steven at gcc dot gnu dot org ` (3 preceding siblings ...) 2004-02-15 22:56 ` pinskia at gcc dot gnu dot org @ 2004-02-16 15:08 ` dnovillo at gcc dot gnu dot org 2004-02-21 1:23 ` dnovillo at gcc dot gnu dot org 2004-02-23 18:13 ` law at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: dnovillo at gcc dot gnu dot org @ 2004-02-16 15:08 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From dnovillo at gcc dot gnu dot org 2004-02-16 15:08 ------- Andrew agreed to take care of this one. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14153 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/14153] [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand 2004-02-15 22:07 [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand steven at gcc dot gnu dot org ` (4 preceding siblings ...) 2004-02-16 15:08 ` dnovillo at gcc dot gnu dot org @ 2004-02-21 1:23 ` dnovillo at gcc dot gnu dot org 2004-02-23 18:13 ` law at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: dnovillo at gcc dot gnu dot org @ 2004-02-21 1:23 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From dnovillo at gcc dot gnu dot org 2004-02-21 01:23 ------- Dan is testing a fix. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pinskia at gcc dot gnu dot |dberlin at gcc dot gnu dot |org |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14153 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/14153] [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand 2004-02-15 22:07 [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand steven at gcc dot gnu dot org ` (5 preceding siblings ...) 2004-02-21 1:23 ` dnovillo at gcc dot gnu dot org @ 2004-02-23 18:13 ` law at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: law at gcc dot gnu dot org @ 2004-02-23 18:13 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From law at gcc dot gnu dot org 2004-02-23 18:13 ------- Fixed by my change which introduced tree-ssa-copy.c on 2/23/2004. -- What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14153 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-02-23 18:13 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-02-15 22:07 [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand steven at gcc dot gnu dot org 2004-02-15 22:07 ` [Bug middle-end/14153] " steven at gcc dot gnu dot org 2004-02-15 22:11 ` [Bug optimization/14153] " pinskia at gcc dot gnu dot org 2004-02-15 22:19 ` pinskia at gcc dot gnu dot org 2004-02-15 22:56 ` pinskia at gcc dot gnu dot org 2004-02-16 15:08 ` dnovillo at gcc dot gnu dot org 2004-02-21 1:23 ` dnovillo at gcc dot gnu dot org 2004-02-23 18:13 ` law 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).