This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2004 21:20:57 -0000
- Subject: [Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ ../cc1 20031222-1.c -std=c99
f
20031222-1.c: In function `f':
20031222-1.c:12: error: parse error before "int"
20031222-1.c: At top level:
20031222-1.c:13: internal compiler error: in cgraph_expand_function, at
cgraphunit.c:633
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$
Also happens at -O*.
Starting program: /home/steven/devel/ssabuild/gcc/cc1 -std=c99 20031222-1.c
f
20031222-1.c: In function `f':
20031222-1.c:12: error: parse error before "int"
Breakpoint 2, fancy_abort (file=0x84a9f80 "../../tree-ssa/gcc/cgraphunit.c",
line=1075848328,
function=0x84a9f80 "../../tree-ssa/gcc/cgraphunit.c") at ../../tree-ssa/
gcc/diagnostic.c:584
584 internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) up
#1 0x0839d643 in cgraph_expand_function (node=0x40202488) at ../../tree-ssa/
gcc/cgraphunit.c:633
633 abort ();
(gdb) l
628 via lang_expand_decl_stmt. */
629 (*lang_hooks.callgraph.expand_function) (decl);
630
631 /* Make sure that BE didn't gave up on compiling. */
632 if (!TREE_ASM_WRITTEN (node->decl))
633 abort ();
634
635 current_function_decl = NULL;
636 if (DECL_SAVED_TREE (node->decl)
637 && !cgraph_preserve_function_body_p (node->decl))
(gdb) bt
#0 fancy_abort (file=0x84a9f80 "../../tree-ssa/gcc/cgraphunit.c",
line=1075848328,
function=0x84a9f80 "../../tree-ssa/gcc/cgraphunit.c") at ../../tree-ssa/
gcc/diagnostic.c:584
#1 0x0839d643 in cgraph_expand_function (node=0x40202488) at ../../tree-ssa/
gcc/cgraphunit.c:633
#2 0x0839d6c3 in cgraph_assemble_pending_functions () at ../../tree-ssa/gcc/
cgraphunit.c:143
#3 0x0839dcda in cgraph_finalize_function (decl=0x40200d24, nested=false)
at ../../tree-ssa/gcc/cgraphunit.c:222
#4 0x08063c99 in finish_function () at ../../tree-ssa/gcc/c-decl.c:6209
#5 0x0804bcc3 in yyparse () at c-parse.y:349
#6 0x08051d6b in c_parse_file () at c-parse.y:2839
#7 0x0809443b in c_common_parse_file (set_yydebug=139108224) at ../../
tree-ssa/gcc/c-opts.c:1207
#8 0x0834d8ad in toplev_main (argc=139108224, argv=0x854fc09) at ../../
tree-ssa/gcc/toplev.c:1850
#9 0x40040d17 in __libc_start_main () from /lib/i686/libc.so.6
#10 0x08049a21 in _start () at ../sysdeps/i386/elf/start.S:102
(gdb)
Tested cc1 was:
GNU C version 3.5-tree-ssa 20040119 (merged 20040102) (i686-pc-linux-gnu)
compiled by GNU C version 3.5-tree-ssa 20040119 (merged 20040102).
I'm assigning this to Honza as a cgraph problem.
--
Summary: [tree-ssa] ICE for gcc.dg/20031222-1.c
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: c
AssignedTo: hubicka at gcc dot gnu dot org
ReportedBy: steven at gcc dot gnu dot org
CC: dnovillo at redhat dot com,gcc-bugs at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13748