[Bug lto/107014] flatten+lto fails the kernel build
andi-gcc at firstfloor dot org
gcc-bugzilla@gcc.gnu.org
Sun Sep 25 19:56:38 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andi-gcc at firstfloor dot org
--- Comment #9 from Andi Kleen <andi-gcc at firstfloor dot org> ---
I suspect what happens is that it hits in some kernel initialization function.
If they don't use initcall the LTO build can all inline them into each other
(because they are only called once) creating a single big initialization
function. With flatten that will create an extremely large function that takes
a long time to process.
I suspect any use of flatten is better using always_inline, since that affects
only a single function. Should probably be fixed upstream in the kernel.
More information about the Gcc-bugs
mailing list