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: unassignedb...@nondot.org
Reporter: oliver.stann...@arm.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs