Hi Ben,
Recently, there has been an effort to standardize a "syscall" interface for
WebAssembly outside the browser (think JVM use-cases) [1]. This patch teaches
config.sub to recognize the relevant configs, following what LLVM 8+ does[2].
[1]
https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/
[2] http://llvm.org/doxygen/Triple_8cpp_source.html
Thanks so much!,
John
From 32f9d8fb0915cf624f52f2f9455a0701817cf1f7 Mon Sep 17 00:00:00 2001
Message-Id: <32f9d8fb0915cf624f52f2f9455a0701817cf1f7.1555281871.git....@johnericson.me>
From: John Ericson <g...@johnericson.me>
Date: Sun, 14 Apr 2019 18:40:47 -0400
Subject: [PATCH] * config.sub (wasm64, wasi): Recognise. *
testsuite/config-sub.data: Add test cases for wasm (Web Assembly) and wasi
(Web Assembly System Interface).
To: config-patches@gnu.org
---
ChangeLog | 6 ++++++
config.sub | 5 +++--
testsuite/config-sub.data | 3 +++
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0e2759e..0a58693 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-04-14 John Ericson <g...@johnericson.me>
+
+ * config.sub (wasm64, wasi): Recognise.
+ * testsuite/config-sub.data: Add test cases for wasm (Web Assembly) and
+ wasi (Web Assembly System Interface).
+
2019-03-29 Ben Elliston <b...@gnu.org>
* testsuite/config-sub.data: Sort.
diff --git a/config.sub b/config.sub
index a44fd8a..f53af5a 100755
--- a/config.sub
+++ b/config.sub
@@ -1247,7 +1247,8 @@ case $cpu-$vendor in
| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
| vax \
| visium \
- | w65 | wasm32 \
+ | w65 \
+ | wasm32 | wasm64 \
| we32k \
| x86 | x86_64 | xc16x | xgate | xps100 \
| xstormy16 | xtensa* \
@@ -1367,7 +1368,7 @@ case $os in
| powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
- | midnightbsd* | amdhsa* | unleashed* | emscripten*)
+ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
qnx*)
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index 9443e25..e9f2231 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -620,6 +620,9 @@ visium-elf visium-unknown-elf
visium visium-unknown-none
vsta i386-pc-vsta
wasm32-emscripten wasm32-unknown-emscripten
+wasm64-emscripten wasm64-unknown-emscripten
+wasm32-wasi wasm32-unknown-wasi
+wasm64-wasi wasm64-unknown-wasi
wasm32 wasm32-unknown-none
we32k we32k-att-sysv
x64-linux x86_64-pc-linux-gnu
--
2.19.2
_______________________________________________
config-patches mailing list
config-patches@gnu.org
https://lists.gnu.org/mailman/listinfo/config-patches