[Bug middle-end/106725] LTO semantics for __attribute__((leaf))

dthorn at google dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 25 16:26:16 GMT 2022


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

--- Comment #4 from Daniel Thornburgh <dthorn at google dot com> ---
(In reply to rguenther@suse.de from comment #3)
> As said, GCC shouldn't assume this since leaf is defined at translation
> unit level, not at LTO level.

Sure, but what prevents GCC from making this assumption? Are all uses of leaf
evaluated before the TUs are merged? Does GCC have some provenance tracking for
which TU a given function came from in the merged view? Is there a pass I
missed to drop leaf after merging but before it's used?


More information about the Gcc-bugs mailing list