__ARM_ARCH is part of the ACLE specification. At least clang and GCC have
supported this part of the ACLE for some time now. Let the compiler provide the
proper definition for the macro rather than try to guess it.
Details
Details
- Reviewers
rengolin t.p.northover jroelofs joerg
Diff Detail
Diff Detail
Event Timeline
Comment Actions
GCC 4.5 was a secondary target for us (NetBSD) at the time and I think that is one of the versions missing it.
Comment Actions
Double checked, GCC 4.5 is certainly missing the defines. For NetBSD this is no longer relevant, but I can't speak for FreeBSD and OpenBSD which are more likely to run into problems with GCC 4.2 on this.
Comment Actions
On FreeBSD we use Clang as the system compiler on amd64/amd64, arm/arm, arm/armv6, i386/i386, pc98/i386, powerpc/powerpc and powerpc/powerpc64.
Comment Actions
Oops -- I copied the wrong list, it should be the platforms on which we set WITH_CLANG_IS_CC by default. That list does still include arm/arm and arm/armv6.