]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lib/msun: Exclude ignored-pragmas from -Werror
authorAlex Richardson <arichardson@FreeBSD.org>
Thu, 15 Apr 2021 15:27:52 +0000 (16:27 +0100)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 22 Apr 2021 09:44:53 +0000 (10:44 +0100)
commita6898ea04e4dd6c1f4f60622df59f1cd97d288f0
tree8353df9dd8adb46d79c37c29b6fe30349e09519e
parenta18882ec97ccb61b67fc70bd7aef3b0c9e710d96
lib/msun: Exclude ignored-pragmas from -Werror

This avoids build failures due to the clang 12 warning:
    '#pragma FENV_ACCESS' is not supported on this target - ignored

Clang 12 currently emits this warning for all non-x86 architectures.
While this can result in incorrect code generation (e.g. on AArch64 some
exceptions are not raised as expected), this is a pre-existing issue and
we should not fail the build due to this warning.

Reviewed By: dim, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D29743

(cherry picked from commit 168234fa67c38f898b784b3265dd77ace0b0a2f9)
lib/msun/Makefile
lib/msun/tests/Makefile