This is the mail archive of the
mailing list for the GCC project.
Re: New compiler crash for PR8361
Andrew Pinski <email@example.com> writes:
> On Thursday, Jul 17, 2003, at 08:17 US/Eastern, Gerald Pfeifer wrote:
> > Normally I'd just file a PR, but PR8361 has a critical example for
> > compile-time performance problems, and since <24 hours (I believe)
> > mainline now crashes while compiling it with -O3.
> In fact there is already a PR for this, PR11545.
> Bug 8361 is already depends on it in bugzilla.
> From bug 11545:
> Really from bug 11592:
> Doing a regression search, it looks like this problem first appeared
> after the big change on Jul 11 from Geoffrey Keating
> 2003-07-11 Geoffrey Keating <firstname.lastname@example.org>
> * 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 (struct cgraph_node): Add chain_next and chain_prev GTY
> 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).
This seems to be a problem with data structure corruption in the
cgraph code. Jan is looking at it, but you can work around it by
removing the chain_prev option from 'struct cgraph_node'.
- Geoffrey Keating <email@example.com>