diff options
author | andrew <andrew@FreeBSD.org> | 2014-10-29 16:24:02 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2014-10-29 16:24:02 +0000 |
commit | f0629d0f088e0764c7bc26a56baca5b4ef8acf1d (patch) | |
tree | 8619454664cc75a8f2255ce6878703397c091972 /lib/msun | |
parent | 456c95b69d6b29abf5f35a1075e5e5c95c5a7d56 (diff) | |
download | FreeBSD-src-f0629d0f088e0764c7bc26a56baca5b4ef8acf1d.zip FreeBSD-src-f0629d0f088e0764c7bc26a56baca5b4ef8acf1d.tar.gz |
MFC r269956:
From https://sourceware.org/ml/newlib/2014/msg00113.html
By Richard Earnshaw at ARM
>
>GCC has for a number of years provides a set of pre-defined macros for
>use with determining the ISA and features of the target during
>pre-processing. However, the design was always somewhat cumbersome in
>that each new architecture revision created a new define and then
>removed the previous one. This meant that it was necessary to keep
>updating the support code simply to recognise a new architecture being
>added.
>
>The ACLE specification (ARM C Language Extentions)
>(http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.set.swdev/index.html)
>provides a much more suitable interface and GCC has supported this
>since gcc-4.8.
>
>This patch makes use of the ACLE pre-defines to map to the internal
>feature definitions. To support older versions of GCC a compatibility
>header is provided that maps the traditional pre-defines onto the new
>ACLE ones.
Stop using __FreeBSD_ARCH_armv6__ and switch to __ARM_ARCH >= 6 in the
couple of places in tree. clang already implements ACLE. Add a define
that says we implement version 1.1, even though the implementation
isn't quite complete.
Diffstat (limited to 'lib/msun')
-rw-r--r-- | lib/msun/arm/fenv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/msun/arm/fenv.c b/lib/msun/arm/fenv.c index 2dd1933..16f1f48 100644 --- a/lib/msun/arm/fenv.c +++ b/lib/msun/arm/fenv.c @@ -30,7 +30,9 @@ #define __fenv_static #include "fenv.h" -#if defined(__FreeBSD_ARCH_armv6__) || (defined(__ARM_ARCH) && __ARM_ARCH >= 6) +#include <machine/acle-compat.h> + +#if __ARM_ARCH >= 6 #define FENV_ARMv6 #endif |