[Bug lto/63603] [4.9/5 Regression] Linking with -fno-lto still invokes LTO
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 21 10:18:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63603
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #2)
> COLLECT_GCC_OPTIONS='-v' '-fno-use-linker-plugin' '-fno-lto'
> '-mtune=generic' '-march=x86-64'
> [...]/collect2 [...]
I haven't shown it, but the collect2 arguments doesn't contain the -fno-lto,
only COLLECT_GCC_OPTIONS has it.
And in collect2.c's main(), there is a check for
else if (!strncmp (argv[i], "-fno-lto", 8))
lto_mode = LTO_MODE_NONE;
but that only operates on argv and not on COLLECT_GCC_OPTIONS.
More information about the Gcc-bugs
mailing list