[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file
sen2403 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 25 13:22:33 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #13 from Eason Lai <sen2403 at hotmail dot com> ---
The inline rule in ipa-inline.c::inline_small_functions can be bypassed by
adding "noinline" attribute as shown below.
__attribute__((weak, noinline)) int get_t(void)
{
return 0;
}
It's an alternative solution for me.
More information about the Gcc-bugs
mailing list