[llvm-bugs] [Bug 27592] __builtin_strcmp in -O0 generates call to non-#included strcmp
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun May 1 06:40:35 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27592
Hal Finkel <hfinkel at anl.gov> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |hfinkel at anl.gov
Resolution|--- |INVALID
--- Comment #1 from Hal Finkel <hfinkel at anl.gov> ---
This is behaving as intended. The libc builts are always allowed to defer to
the libc implementation, regardless of optimization level (although it is true
that some of them we'll always expand when optimizations are enabled). The
implementation is always allowed to assume the existence of a standard C
library (or C++ library for C++ code) with which to link (regardless of what
headers you include in your translation unit). In fact, the compiler will
generate calls to memcpy and similar functions for implementing some structure
copies without there being an explicit references to memcpy in your source code
at all.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160501/a0f57a99/attachment.html>
More information about the llvm-bugs
mailing list