summaryrefslogtreecommitdiffstats
path: root/sys/arm/include/sysarch.h
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2016-05-25 19:44:26 +0000
committerian <ian@FreeBSD.org>2016-05-25 19:44:26 +0000
commit8d8c35656ee44a38e24d3e78e45afecf0c29a92c (patch)
tree90464adcd35c6df87f88394a1cb3a9fbcf8f1857 /sys/arm/include/sysarch.h
parent24dfc68c5cf50551cd4f342ba0f5496c53557d9d (diff)
downloadFreeBSD-src-8d8c35656ee44a38e24d3e78e45afecf0c29a92c.zip
FreeBSD-src-8d8c35656ee44a38e24d3e78e45afecf0c29a92c.tar.gz
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
Diffstat (limited to 'sys/arm/include/sysarch.h')
-rw-r--r--sys/arm/include/sysarch.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/arm/include/sysarch.h b/sys/arm/include/sysarch.h
index ac0a64d..43abb00 100644
--- a/sys/arm/include/sysarch.h
+++ b/sys/arm/include/sysarch.h
@@ -37,7 +37,6 @@
#ifndef _ARM_SYSARCH_H_
#define _ARM_SYSARCH_H_
-#include <machine/acle-compat.h>
#include <machine/armreg.h>
/*
OpenPOWER on IntegriCloud