This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/60319] wrong code (that hangs) by LTO at -Os and above on x86_64-linux-gnu
- From: "su at cs dot ucdavis.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Feb 2014 15:40:29 +0000
- Subject: [Bug lto/60319] wrong code (that hangs) by LTO at -Os and above on x86_64-linux-gnu
- Auto-submitted: auto-generated
- References: <bug-60319-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60319
--- Comment #5 from Zhendong Su <su at cs dot ucdavis.edu> ---
Did you separately compile the two files at -O0 and link at -Os, like below?
> $ gcc-trunk -flto -O0 -c foo.c
> $ gcc-trunk -flto -O0 -c main.c
> $ gcc-trunk -flto -Os foo.o main.o