This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/11545] New: [mainline regression] Segmentation fault whem marking cgraph_node in unit-at-a-time mode
- 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: 16 Jul 2003 11:29:30 -0000
- Subject: [Bug middle-end/11545] New: [mainline regression] Segmentation fault whem marking cgraph_node in unit-at-a-time mode
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11545
Summary: [mainline regression] Segmentation fault whem marking
cgraph_node in unit-at-a-time mode
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: critical
Priority: P1
Component: middle-end
AssignedTo: jh at suse dot cz
ReportedBy: steven at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 8361
nThis:
The code in question is generate-3.4.ii which is the test case for Bug 8361.
cc1plus -O3 -quiet -fpermissive 8361.ii
In file included from dl.h:165,
from generate.C:6:
literal.h: In member function `bool TLITERAL<T>::isSaviour() const':
literal.h:67: warning: there are no arguments to `isBuiltin' that depend on a
template parameter, so a declaration of `isBuiltin' must be available
literal.h:67: warning: there are no arguments to `isComplexBuiltin' that depend
on a template parameter, so a declaration of `isComplexBuiltin' must be
available
literal.h:68: warning: there are no arguments to `isAggregate' that depend on a
template parameter, so a declaration of `isAggregate' must be available
literal.h:68: warning: there are no arguments to `getAggregate' that depend on
a template parameter, so a declaration of `getAggregate' must be available
In file included from generate.C:6:
depgraph.h: In member function `void DEPGRAPH<ATOM_TYPE, CONSTRAINTS_TYPE,
PROGRAM_TYPE>::computeAllComponentConstraints(const CONSTRAINTS_TYPE&)':
depgraph.h:1663: warning: there are no arguments to `SafeExit' that depend on a
template parameter, so a declaration of `SafeExit' must be available
Program received signal SIGSEGV, Segmentation fault.
gt_ggc_mx_cgraph_node (x_p=0x46a95360) at gtype-desc.c:87
87 gt_ggc_m_9tree_node ((*x).decl);
(gdb) p x
$2 = (struct cgraph_node *) 0x0
(gdb) where
#0 gt_ggc_mx_cgraph_node (x_p=0x46a95360) at gtype-desc.c:87
#1 0x0827af49 in gt_ggc_m_P11cgraph_node4htab (x_p=0x413dcf40) at gtype-desc.c:1218
#2 0x08277262 in ggc_mark_roots () at ../../mainline/gcc/ggc-common.c:111
#3 0x083eae84 in ggc_collect () at ../../mainline/gcc/ggc-page.c:1769
#4 0x0840fbe6 in cgraph_finalize_compilation_unit ()
at ../../mainline/gcc/cgraphunit.c:236
#5 0x080e0945 in finish_file () at ../../mainline/gcc/cp/decl2.c:2938
#6 0x083bb89a in compile_file () at ../../mainline/gcc/toplev.c:1764
#7 0x083c028e in do_compile () at ../../mainline/gcc/toplev.c:4605
#8 0x083c03a5 in toplev_main (argc=1, argv=0x47009438)
at ../../mainline/gcc/toplev.c:4646
#9 0x400355cd in __libc_start_main () from /lib/libc.so.6
This used to work not so long ago, so this is a regression on the trunk. Do
other people see this as well?