This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/11545] [3.4 regression] Segmentation fault whem marking cgraph_node in unit-at-a-time mode
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2003 13:41:56 -0000
- Subject: [Bug middle-end/11545] [3.4 regression] Segmentation fault whem marking cgraph_node in unit-at-a-time mode
- References: <20030716112928.11545.steven@gcc.gnu.org>
- 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
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-16 13:41 -------
>From bug 11592:
Doing a regression search, it looks like this problem first appeared
after the big change on Jul 11 from Geoffrey Keating <geoffk@apple.com>:
2003-07-11 Geoffrey Keating <geoffk@apple.com>
* c-decl.c (finish_decl): Handle 'used' here...
* cgraphunit.c (cgraph_finalize_function): ... and here ...
* c-common.c: (handle_used_attribute): ... not here.
...
...
In particular, i found that if i reverted his change to
cgraph.h:
* cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
options.
then the crash went away.
A simple include of iostream causes this segfault (you have to use "--param ggc-min-
expand=0 --param ggc-min-heapsize=0" which forces gc to happen always).