[commit: ghc] master: configure: add support for 'sh4' (Trac #11209) (f48015b)

git at git.haskell.org git at git.haskell.org
Sun Dec 13 12:41:13 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/f48015bcac59960f6d266506a5f378c9bcf8f005/ghc

>---------------------------------------------------------------

commit f48015bcac59960f6d266506a5f378c9bcf8f005
Author: Sergei Trofimovich <siarheit at google.com>
Date:   Sun Dec 13 12:36:47 2015 +0000

    configure: add support for 'sh4' (Trac #11209)
    
    Debian has Renesas SH4 (SuperH) port with a triplet:
    
        sh4-linux-gnu
    
    Patch by glaubitz adds 'sh4' CPU to recognize target
    as ArchUnknown.
    
    Signed-off-by: Sergei Trofimovich <siarheit at google.com>


>---------------------------------------------------------------

f48015bcac59960f6d266506a5f378c9bcf8f005
 aclocal.m4 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index e0cd330..e46a19f 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -212,7 +212,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS],
         mipsel)
             test -z "[$]2" || eval "[$]2=ArchMipsel"
             ;;
-        hppa|hppa1_1|ia64|m68k|rs6000|s390|s390x|sparc64|vax)
+        hppa|hppa1_1|ia64|m68k|rs6000|s390|s390x|sh4|sparc64|vax)
             test -z "[$]2" || eval "[$]2=ArchUnknown"
             ;;
         *)
@@ -1825,6 +1825,9 @@ case "$1" in
   s390*)
     $2="s390"
     ;;
+  sh4)
+    $2="sh4"
+    ;;
   sparc64*)
     $2="sparc64"
     ;;



More information about the ghc-commits mailing list