[Bug 222881] on armv7, clang reports __ARM_ARCH = 6 and defines __ARM_ARCH_6KZ__

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 9 18:37:45 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222881

--- Comment #3 from Dimitry Andric <dim at FreeBSD.org> ---
For example, on my amd64 box, I get the following:

$ clang -target armv7-freebsd -dM -E -x c /dev/null|grep -i arm|sort
#define __ARMEL__ 1
#define __ARM_32BIT_STATE 1
#define __ARM_ACLE 200
#define __ARM_ARCH 7
#define __ARM_ARCH_7A__ 1
#define __ARM_ARCH_ISA_ARM 1
#define __ARM_ARCH_ISA_THUMB 2
#define __ARM_ARCH_PROFILE 'A'
#define __ARM_EABI__ 1
#define __ARM_FEATURE_CLZ 1
#define __ARM_FEATURE_DSP 1
#define __ARM_FEATURE_LDREX 0xF
#define __ARM_FEATURE_QBIT 1
#define __ARM_FEATURE_SAT 1
#define __ARM_FEATURE_SIMD32 1
#define __ARM_FP 0xC
#define __ARM_FP16_ARGS 1
#define __ARM_FP16_FORMAT_IEEE 1
#define __ARM_PCS 1
#define __ARM_SIZEOF_MINIMAL_ENUM 4
#define __ARM_SIZEOF_WCHAR_T 4
#define __ARM_VFPV3__ 1
#define __arm 1
#define __arm__ 1

which seems reasonable to me.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list