clang on armv6 incorrectly emits call to sincos()

Ed Maste emaste at freebsd.org
Wed Jan 11 16:44:20 UTC 2017


On 11 January 2017 at 09:42, Jia-Shiun Li <jiashiun at gmail.com> wrote:
>
> Think this optimization should be turned off for armv6 from base
> clang/llvm, instead of patching individual ports or ports infrastructure.

You're right that this needs to be fixed in the compiler or the base
system, not individual ports. LLVM has a hasSinCos() and should not be
emitting the sincos libcall on platforms that do not have it. Would
you care to submit a PR for this?

-Ed


More information about the freebsd-arm mailing list