New compiler crash for PR8361
Andrew Pinski
pinskia@physics.uc.edu
Thu Jul 17 13:58:00 GMT 2003
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
<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).
Thanks,
Andrew Pinski
More information about the Gcc
mailing list