[Bug lto/41858] -flto -O2 crashes when many source files.
bstarynk at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 28 21:47:00 GMT 2009
------- Comment #2 from bstarynk at gcc dot gnu dot org 2009-10-28 21:47 -------
The attachment main.c is a source file generator and test case.
Put it in an empty directory.
First, compile it just with
gcc main.c -o main
[you could add other flags to gcc, you can use any flavor of gcc]
Then run it once to generate many files.
./main 4000
Then it shows a lot of messages, ending with
generated function #3968 in Q_152
generated 4000 files last is W_153.c
try to compile all 4000 files with:
gcc-trunk -flto -O2 -DGENERATEDALL main.c [A-Z]*.c -o big
Do what it tells, so run the gcc trunk as said.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41858
More information about the Gcc-bugs
mailing list