diff options
author | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2017-01-21 12:49:31 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2017-03-01 21:04:31 +0100 |
commit | 92222727f81b2a03cde124b88d7e6224ecb29199 (patch) | |
tree | 7260a4338ce1a870d96a8ed86fe3208b8a3ae9fd /module/system/base | |
parent | 7c5f38fe6dda9854c3cee7df51ab1031ce23a7e8 (diff) |
Recognize sh3 as compilation targets
* module/system/base/target.scm (cpu-endianness, triplet-pointer-size):
Add case for "sh3".
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'module/system/base')
-rw-r--r-- | module/system/base/target.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/system/base/target.scm b/module/system/base/target.scm index 02febf8e4..e80bf84e4 100644 --- a/module/system/base/target.scm +++ b/module/system/base/target.scm @@ -63,7 +63,7 @@ (cond ((string-match "^i[0-9]86$" cpu) (endianness little)) ((member cpu '("x86_64" "ia64" - "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha")) + "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh3" "sh4" "alpha")) (endianness little)) ((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu" "mips" "mips64" "m68k" "s390x")) @@ -102,7 +102,7 @@ ((string-match "64$" cpu) 8) ((string-match "64_?[lbe][lbe]$" cpu) 8) - ((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh4")) 4) + ((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh3" "sh4")) 4) ((member cpu '("s390x" "alpha")) 8) ((string-match "^arm.*" cpu) 4) (else (error "unknown CPU word size" cpu))))) |