This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/41858] -flto -O2 crashes when many source files.
- From: "bstarynk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2009 21:47:50 -0000
- Subject: [Bug lto/41858] -flto -O2 crashes when many source files.
- References: <bug-41858-13763@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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