Add a check for minimum compiler compatible with gcc 4.1

__ARM_PCS_AAPCS64 also requires __ALIGNBYTES to be 7
This commit is contained in:
matt 2014-01-29 00:20:54 +00:00
parent f54a7460e2
commit 578ed6039f
1 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,12 @@
/* $NetBSD: cdefs.h,v 1.10 2014/01/28 21:17:12 matt Exp $ */
/* $NetBSD: cdefs.h,v 1.11 2014/01/29 00:20:54 matt Exp $ */
#ifndef _ARM_CDEFS_H_
#define _ARM_CDEFS_H_
#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || __GNUC__ > 4
#error GCC 4.1 or compatible required.
#endif
#if defined (__ARM_ARCH_8A__)
#define _ARM_ARCH_8 /* ARMv8 64-bit in AARCH32 */
#endif
@ -45,7 +49,7 @@
#define _ARM_ARCH_DWORD_OK
#endif
#ifdef __ARM_EABI__
#if defined(__ARM_EABI__) || defined(__ARM_PCS_AAPCS64)
#define __ALIGNBYTES (8 - 1)
#else
#define __ALIGNBYTES (sizeof(int) - 1)