[llvm-bugs] [Bug 41035] Linux kernel build: Regression due memcmp to bcmp optimization

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 12 11:54:30 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41035

Szabolcs Nagy <szabolcs.nagy at arm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---
                 CC|                            |szabolcs.nagy at arm.com

--- Comment #14 from Szabolcs Nagy <szabolcs.nagy at arm.com> ---
(In reply to James Y Knight from comment #13)
> When a compile doesn't specify -ffreestanding, the compiler assumes that the
> functions provided by the environment's normal libc will be available to the
> link. (And in this case, glibc provides bcmp, so the compiler may assume
> bcmp's availability.)

bcmp is not specified by any standard and violates
the c and posix extern linkage namespace rules so
the compiler should not generate it, in particular
with static linking it may break applications that
use this symbol for something else (which is valid
use and works with glibc currently).

this is a bug that should be fixed.

-- 
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/20190312/168c73a4/attachment-0001.html>


More information about the llvm-bugs mailing list