Module Name: src
Committed By: skrll
Date: Tue Nov 3 08:34:17 UTC 2020
Modified Files:
src/sys/arch/arm/include: cdefs.h
Log Message:
The ARM C Language Extenstion document defines __ARCH_ARM as the integer
macro indicating the current ARM instruction set. Let's use it.
PR/55778: evbarm64 GENERIC64 kernel fails to build with clang
XXX Handle the fact that for an ARM architecture ARMvX.Y then,
XXX __ARM_ARCH= X * 100 + Y. E.g. for ARMv8.1 __ARM_ARCH = 801.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/include/cdefs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/include/cdefs.h
diff -u src/sys/arch/arm/include/cdefs.h:1.17 src/sys/arch/arm/include/cdefs.h:1.18
--- src/sys/arch/arm/include/cdefs.h:1.17 Sun Oct 11 16:22:02 2020
+++ src/sys/arch/arm/include/cdefs.h Tue Nov 3 08:34:17 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.17 2020/10/11 16:22:02 skrll Exp $ */
+/* $NetBSD: cdefs.h,v 1.18 2020/11/03 08:34:17 skrll Exp $ */
#ifndef _ARM_CDEFS_H_
#define _ARM_CDEFS_H_
@@ -10,7 +10,8 @@
#endif
-#if defined (__ARM_ARCH_8A__) || defined (__ARM_ARCH_8A)
+#if defined (__ARM_ARCH_8A__) || defined (__ARM_ARCH_8A) || \
+ __ARM_ARCH == 8
/* __ARM_ARCH_8A__ is a typo */
#define _ARM_ARCH_8
#endif