changeset 205:dd0d2bfe4962

Recognize __aarch64__ and __riscv__. __aarch64__ was sent in simultaneously by several people at once, which was a little freaky, but whatever.
author David A. Holland
date Mon, 21 Jan 2019 21:18:50 -0500
parents bdc672634010
children 9aa91d3fe3a3
files CHANGES config.h
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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