public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/14153] New: [tree-ssa] ICE in tree-ssa-operands.c:add_stmt_operand Date: Sun, 15 Feb 2004 22:07:00 -0000 [thread overview] Message-ID: <20040215220704.14153.steven@gcc.gnu.org> (raw) 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
next reply other threads:[~2004-02-15 22:07 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-02-15 22:07 steven at gcc dot gnu dot org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040215220704.14153.steven@gcc.gnu.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).