[llvm-bugs] [Bug 47481] New: sprintf optimised to stpcpy breaks linux kernel build

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 10 03:00:08 PDT 2020


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

            Bug ID: 47481
           Summary: sprintf optimised to stpcpy breaks linux kernel build
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: oliver.stannard at arm.com
                CC: llvm-bugs at lists.llvm.org

After https://reviews.llvm.org/rG6dbf0cfc (re-landed as
https://reviews.llvm.org/rGf134fc4f), we are optimising some sprintf calls into
stpcpy calls. sprintf is a part of standard C, but stpcpy is a posix function.

This is breaking our linux kernel builds, because that does not have an
implementation of stpcpy. Currently, our builds are using
--target=arm-linux-gnueabihf, which arguably should allow this transformation
because it is also used for user-space programs. However, this does appear to
be the standard way to build the linux kernel for ARM, and llvm also does the
transformation with --target=arm-none-gnueabihf.

-- 
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/20200910/0fe53319/attachment.html>


More information about the llvm-bugs mailing list