This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/54231] LTO generates code for the wrong CPU if different options used
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Aug 2012 08:59:18 +0000
- Subject: [Bug lto/54231] LTO generates code for the wrong CPU if different options used
- Auto-submitted: auto-generated
- References: <bug-54231-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54231
--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-08-13 08:59:18 UTC ---
If you do something like
gcc -c t1.c -mavx -flto
gcc -c t2.c -msse2 -flto
gcc t1.o t2.o -flto
then the link step will use -mavx -msse2, that is, target options are
concatenated.