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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |jsm28 at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Yeah, we do remove unused (as in unused from the source) memcpy implementations
early but then introduce uses ourselves.

I suppose we should avoid doing that with -ffreestanding, thus basically add
the used attribute on a select number of definitions automatically with this
option.

I wonder for example whether a static definition of memcpy would need to be
preserved since I think this isn't really special to LTO.

Joseph?  Honza?

Reply via email to