[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/01: Recognize m68k, s390x, and sh4 as compilation tar
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 01/01: Recognize m68k, s390x, and sh4 as compilation targets |
Date: |
Wed, 19 Nov 2014 13:07:29 +0000 |
civodul pushed a commit to branch stable-2.0
in repository guile.
commit 136c3a4c4a42f72331f5d18c592ef003bf894178
Author: Rob Browning <address@hidden>
Date: Wed Sep 24 16:47:55 2014 -0500
Recognize m68k, s390x, and sh4 as compilation targets
* module/system/base/target.scm (cpu-endianness, triplet-pointer-size):
Add cases for "m68k", "sh4", and "s390x".
Signed-off-by: Ludovic Courtès <address@hidden>
---
module/system/base/target.scm | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/module/system/base/target.scm b/module/system/base/target.scm
index 31e3fea..0022dc8 100644
--- a/module/system/base/target.scm
+++ b/module/system/base/target.scm
@@ -65,10 +65,10 @@
(cond ((string-match "^i[0-9]86$" cpu)
(endianness little))
((member cpu '("x86_64" "ia64"
- "powerpcle" "powerpc64le" "mipsel" "mips64el"))
+ "powerpcle" "powerpc64le" "mipsel" "mips64el"
"sh4"))
(endianness little))
((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu"
- "mips" "mips64"))
+ "mips" "mips64" "m68k" "s390x"))
(endianness big))
((string-match "^arm.*el" cpu)
(endianness little))
@@ -104,7 +104,8 @@
((string-match "64$" cpu) 8)
((string-match "64_?[lbe][lbe]$" cpu) 8)
- ((member cpu '("sparc" "powerpc" "mips" "mipsel")) 4)
+ ((member cpu '("sparc" "powerpc" "mips" "mipsel" "m68k" "sh4")) 4)
+ ((member cpu '("s390x")) 8)
((string-match "^arm.*" cpu) 4)
(else (error "unknown CPU word size" cpu)))))