aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/arm/stdatomic.c
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2016-05-25 19:44:26 +0000
committerIan Lepore <ian@FreeBSD.org>2016-05-25 19:44:26 +0000
commita66dc0c52bd06d55654736be3d285bb481981906 (patch)
tree90464adcd35c6df87f88394a1cb3a9fbcf8f1857 /sys/arm/arm/stdatomic.c
parent92a58a9246498c0001cccbea4e33e128eb989077 (diff)
downloadsrc-a66dc0c52bd06d55654736be3d285bb481981906.tar.gz
src-a66dc0c52bd06d55654736be3d285bb481981906.zip
Include machine/acle-compat.h in cdefs.h on arm if the compiler doesn't
have ACLE support built in. The ACLE (ARM C Language Extensions) defines a set of standardized symbols which indicate the architecture version and features available. ACLE support is built in to modern compilers (both clang and gcc), but absent from gcc prior to 4.4. ARM (the company) provides the acle-compat.h header file to define the right symbols for older versions of gcc. Basically, acle-compat.h does for arm about the same thing cdefs.h does for freebsd: defines standardized macros that work no matter which compiler you use. If ARM hadn't provided this file we would have ended up with a big #ifdef __arm__ section in cdefs.h with our own compatibility shims. Remove #include <machine/acle-compat.h> from the zillion other places (an ever-growing list) that it appears. Since style(9) requires sys/types.h or sys/param.h early in the include list, and both of those lead to including cdefs.h, only a couple special cases still need to include acle-compat.h directly. Loves it: imp
Notes
Notes: svn path=/head/; revision=300694
Diffstat (limited to 'sys/arm/arm/stdatomic.c')
-rw-r--r--sys/arm/arm/stdatomic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/arm/arm/stdatomic.c b/sys/arm/arm/stdatomic.c
index b12a82e2288b..29ff7f5b187f 100644
--- a/sys/arm/arm/stdatomic.c
+++ b/sys/arm/arm/stdatomic.c
@@ -31,7 +31,6 @@ __FBSDID("$FreeBSD$");
#include <sys/stdatomic.h>
#include <sys/types.h>
-#include <machine/acle-compat.h>
#include <machine/atomic.h>
#include <machine/cpufunc.h>
#include <machine/sysarch.h>