This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/11545] [3.4 regression] Segmentation fault whem marking cgraph_node in unit-at-a-time mode


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]