# HG changeset patch # User David A. Holland # Date 1548123530 18000 # Node ID dd0d2bfe49624a5efd9c63345e630535eef6f922 # Parent bdc672634010c834e3c7d05520cd8c1e6169ad47 Recognize __aarch64__ and __riscv__. __aarch64__ was sent in simultaneously by several people at once, which was a little freaky, but whatever. diff -r bdc672634010 -r dd0d2bfe4962 CHANGES --- a/CHANGES Thu Aug 24 12:34:41 2017 -0400 +++ b/CHANGES Mon Jan 21 21:18:50 2019 -0500 @@ -8,6 +8,9 @@ to compile or preprocess anything useful. Done in response to n2129, but without getting into any of the silliness found there. - Recognize __ia64__ for IA64 builds. + - Recognize __aarch64__ for 64-bit ARM builds, as sent in by + various people. + - Recognize __riscv__ and __riscv64__ for risc-v builds. release 0.5.2 (20160904) - Fix typo in -U usage message, noticed by Joerg. diff -r bdc672634010 -r dd0d2bfe4962 config.h --- a/config.h Thu Aug 24 12:34:41 2017 -0400 +++ b/config.h Mon Jan 21 21:18:50 2019 -0500 @@ -124,6 +124,20 @@ #define CONFIG_CPU "__ppc64__" #elif defined(__ARM__) #define CONFIG_CPU "__ARM__" +#elif defined(__AARCH64__) +#define CONFIG_CPU "__AARCH64__" +#elif defined(__aarch64__) +#define CONFIG_CPU "__aarch64__" +#elif defined(__RISCV__) +#define CONFIG_CPU "__RISCV__" +#elif defined(__riscv__) +#define CONFIG_CPU "__riscv__" +#elif defined(__RISCV64__) +#define CONFIG_CPU "__RISCV64__" +#elif defined(__riscv64__) +#define CONFIG_CPU "__riscv64__" +#elif defined(__riscv64) +#define CONFIG_CPU "__riscv64" #elif defined(__ia64__) #define CONFIG_CPU "__ia64__" #else