Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include The ARM C Language Extenstion document ...



details:   https://anonhg.NetBSD.org/src/rev/b35571313b58
branches:  trunk
changeset: 941998:b35571313b58
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Nov 03 08:34:17 2020 +0000

description:
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.

diffstat:

 sys/arch/arm/include/cdefs.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d6334c3106d5 -r b35571313b58 sys/arch/arm/include/cdefs.h
--- a/sys/arch/arm/include/cdefs.h      Tue Nov 03 08:24:33 2020 +0000
+++ b/sys/arch/arm/include/cdefs.h      Tue Nov 03 08:34:17 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index