This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/61001] Builtin memcpy and memset cannot be overridden when -flto is used


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

--- Comment #5 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
Well, it sucks as a failure mode.  (User: "*Multiple* definitions?  But I
provided *one*!  Surely a linker bug/misfeature of some sorts!")
(Note: I'd be totally ok with e.g. compiling memcpy into a recursive function,
so the typical user may not agree!)

Anyway I'm less and less convinced that this behavior is desired (forgetting
about whatever functions happen to also be builtins when emitting the LTO
tentative symbols, then *re-introducing* them when emitting the real object
code).
See also PR55994.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]