https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63344
--- Comment #5 from Andi Kleen <andi-gcc at firstfloor dot org> --- I posted a patch here http://permalink.gmane.org/gmane.linux.kernel/1793662 BTW actually I don't agree that the bug is valid. We should probably relax the LTO checking to match what the linker does (which does not error out for this case).