This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/61001] Builtin memcpy and memset cannot be overridden when -flto is used
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Apr 2014 13:29:00 +0000
- Subject: [Bug lto/61001] Builtin memcpy and memset cannot be overridden when -flto is used
- Auto-submitted: auto-generated
- References: <bug-61001-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61001
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Please copy your testcase here.
-fno-builtin-memcmp is not a hack, it is necessary, even without -flto. Without
it, linking is not the only thing that may fail. gcc may look at your
implementation, recognize that it is doing the same thing as memcmp, and
replace it with a call to memcmp...