]> Savannah Git Hosting - gnulib.git/commitdiff
host-cpu-c-abi: Add support for LoongArch64 CPU.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Jan 2022 23:24:33 +0000 (00:24 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Jan 2022 23:24:33 +0000 (00:24 +0100)
* m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define __loongarch64__. (GCC
and clang predefine only __loongarch__, __loongarch64.)

ChangeLog
m4/host-cpu-c-abi.m4

index 514a4697c02d283792731243d1e0ae4199ef0ed0..aa3b04035d9ddce4792dc6a941837a3650f2d18e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-01-09  Bruno Haible  <bruno@clisp.org>
+
+       host-cpu-c-abi: Add support for LoongArch64 CPU.
+       * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define __loongarch64__. (GCC
+       and clang predefine only __loongarch__, __loongarch64.)
+
 2022-01-09  Bruno Haible  <bruno@clisp.org>
 
        stdio: Fix "missing file" errors (regression from today).
index 6d1e4578c7f3702559e123b9ae35ef8a5585978a..b9223241b43670d990e32c5ff212661a3bdec1e8 100644 (file)
@@ -1,4 +1,4 @@
-# host-cpu-c-abi.m4 serial 14
+# host-cpu-c-abi.m4 serial 15
 dnl Copyright (C) 2002-2022 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -382,6 +382,9 @@ EOF
 #ifndef __ia64__
 #undef __ia64__
 #endif
+#ifndef __loongarch64__
+#undef __loongarch64__
+#endif
 #ifndef __m68k__
 #undef __m68k__
 #endif