This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/55102] The options -flto and -On do not behave as described in GCC docs
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Mar 2013 12:47:04 +0000
- Subject: [Bug lto/55102] The options -flto and -On do not behave as described in GCC docs
- Auto-submitted: auto-generated
- References: <bug-55102-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55102
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> 2013-03-27 12:47:04 UTC ---
Doing IPA analysis at -O0 for LTO streaming won't really solve the fact that
functions are not early optimized. I would vote for at least issuing a waning
when LTOing -O0 objects into -On, n>=1 LTO binary or simply declaring -O0 to be
non-LTO only.
But indeed, we probably should make analysis/summary streaming of all IPA
passes so -fno-ipa-cp and such works as expected all the time. I have patch
fot that somewhere already.
We probably should lean the route of streaming the options used and honoring
them rather than taking whatever is passed to linker...