summaryrefslogtreecommitdiff
path: root/module/system/base
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-02-27 20:39:51 +0100
committerLudovic Courtès <ludo@gnu.org>2013-02-27 20:40:08 +0100
commitb946e08a6ae6e73bda1f76017fcb75f41cd4b288 (patch)
treefc448c336497cca916b8b8d43073232cb634875c /module/system/base
parent9130ec74cf55a2531a364ef16b6608489b583f16 (diff)
Recognize the `x86_64.*-gnux32' triplet.
* module/system/base/target.scm (triplet-pointer-size): Add case for "^x64_64-.*-gnux32". * test-suite/tests/asm-to-bytecode.test ("cross-compilation"): ["x86_64-unknown-linux-gnux32"]: New test.
Diffstat (limited to 'module/system/base')
-rw-r--r--module/system/base/target.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/system/base/target.scm b/module/system/base/target.scm
index 5cc0c1d75..762894ca3 100644
--- a/module/system/base/target.scm
+++ b/module/system/base/target.scm
@@ -92,6 +92,8 @@
((string-match "^mips64.*-gnuabi64" triplet) 8) ; n64 ABI
((string-match "^mips64" cpu) 4) ; n32 or o32
+ ((string-match "^x64_64-.*-gnux32" triplet) 4) ; x32
+
((string-match "64$" cpu) 8)
((string-match "64[lbe][lbe]$" cpu) 8)
((member cpu '("sparc" "powerpc" "mips" "mipsel")) 4)