https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77472

--- Comment #7 from Jan Hubicka <hubicka at ucw dot cz> ---
> I'm not sure what is the best way forward.
> Maybe gcc should ignore __attribute__((flatten)) when using LTO
> unconditionally?

Well, I am not sure - flatten can make compiler explode without LTO, too,
and I can imagine that in future one may want to do cross-module flattening.
Of course we can document flatten as being applied at compile time only and
eventually intorduce lto_flatten if need for link time flattening arrises,
so existing codebases does not explode.

Honza

Reply via email to