Define _ARM_ARCH_8 when __ARM_ARCH_8A (no trailing double underscore) as
it is defined by gcc. __ARM_ARCH_8A__ (with trailing double underscore) seems to be a typo (or maybe historical)
This commit is contained in:
parent
636014f4f9
commit
058bd28709
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: features.c,v 1.2 2019/08/02 12:07:24 joerg Exp $ */
|
||||
/* $NetBSD: features.c,v 1.3 2020/10/11 16:22:02 skrll Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2014 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
@ -38,7 +38,8 @@
|
||||
* FEAT_THUMB2!=if ${COMPILE.c} -fsyntax-only -DTHUMB2_TEST ${TESTFILE} >/dev/null 2>/dev/null; then echo yes; else echo no; fi
|
||||
*/
|
||||
|
||||
#if defined (__ARM_ARCH_8A__) || defined (__ARM_ARCH_7__) || \
|
||||
#if defined(__ARM_ARCH_8A) || defined (__ARM_ARCH_8A__) || \
|
||||
defined (__ARM_ARCH_7__) || \
|
||||
defined (__ARM_ARCH_7A__) || defined (__ARM_ARCH_7R__) || \
|
||||
defined (__ARM_ARCH_7M__) || defined (__ARM_ARCH_7EM__) || \
|
||||
defined (__ARM_ARCH_6T2__)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cdefs.h,v 1.16 2019/08/02 12:07:25 joerg Exp $ */
|
||||
/* $NetBSD: cdefs.h,v 1.17 2020/10/11 16:22:02 skrll Exp $ */
|
||||
|
||||
#ifndef _ARM_CDEFS_H_
|
||||
#define _ARM_CDEFS_H_
|
||||
@ -9,8 +9,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (__ARM_ARCH_8A__)
|
||||
#define _ARM_ARCH_8 /* ARMv8 64-bit in AARCH32 */
|
||||
|
||||
#if defined (__ARM_ARCH_8A__) || defined (__ARM_ARCH_8A)
|
||||
/* __ARM_ARCH_8A__ is a typo */
|
||||
#define _ARM_ARCH_8
|
||||
#endif
|
||||
|
||||
#if defined (_ARM_ARCH_8) || defined (__ARM_ARCH_7__) || \
|
||||
|
Loading…
Reference in New Issue
Block a user