This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/15712] New: ICE with 'extern inline' and -funit-at-a-time -dU
- From: "belyshev at lubercy dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2004 18:30:59 -0000
- Subject: [Bug middle-end/15712] New: ICE with 'extern inline' and -funit-at-a-time -dU
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
cat > bug.i <<EOF
extern inline int putchar ()
{
return 0;
}
int main ()
{
putchar ();
return 0;
}
EOF
gdb --args ./cc1 -quiet bug.i -std=gnu99 -Wall -Wextra -O1 -funit-at-a-time -dU
run
where
Program received signal SIGSEGV, Segmentation fault.
0x08395652 in lhd_decl_printable_name (decl=0xe68805c6, verbosity=2)
at ../../gcc/gcc/langhooks.c:294
294 return IDENTIFIER_POINTER (DECL_NAME (decl));
(gdb) where
#0 0x08395652 in lhd_decl_printable_name (decl=0xe68805c6, verbosity=2)
at ../../gcc/gcc/langhooks.c:294
#1 0x084f0810 in cgraph_node_name (node=0x84f48f0) at ../../gcc/gcc/cgraph.c:452
#2 0x084f3dc0 in cgraph_decide_inlining () at ../../gcc/gcc/cgraphunit.c:1483
#3 0x084f48f0 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1743
#4 0x080af0bc in c_objc_common_finish_file () at ../../gcc/gcc/c-objc-common.c:241
#5 0x08056b27 in finish_file () at ../../gcc/gcc/c-lang.c:213
#6 0x080a3e35 in c_common_parse_file (set_yydebug=0) at ../../gcc/gcc/c-opts.c:1240
#7 0x08491a9a in compile_file () at ../../gcc/gcc/toplev.c:1653
#8 0x084939f6 in do_compile () at ../../gcc/gcc/toplev.c:2699
#9 0x08493a5b in toplev_main (argc=9, argv=0xbffff8e4) at
../../gcc/gcc/toplev.c:2731
#10 0x40039b45 in __libc_start_main (main=0xbffffb39, argc=-1073743018,
ubp_av=0xbffffb68,
init=0x85b97e0 <__libc_csu_init>, fini=0x85b9840 <__libc_csu_fini>,
rtld_fini=0x4000baa0 <_dl_fini>, stack_end=0xbffffbbd)
at ../sysdeps/generic/libc-start.c:209
#11 0x08049ab1 in _start () at ../sysdeps/i386/elf/start.S:102
--
Summary: ICE with 'extern inline' and -funit-at-a-time -dU
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15712