https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63603
Bug ID: 63603 Summary: [4.9/5 Regression] Linking with -fno-lto still invokes LTO Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Running echo "int main() {return 0;}" > foo.c gcc -flto -ffat-lto-objects -c foo.c gcc -v -fno-lto foo.o 2>&1|grep lto1 shows that the -fno-lto is ignored for linking as lto1 is always invoked with GCC 4.9 and 5. Using GCC 4.8, LTO is not automatically invoked for linking but has to be passed manually. Hence, it works there.