config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Loongarch support


From: 武校田
Subject: Re: [PATCH] Loongarch support
Date: Mon, 21 Dec 2020 15:16:10 +0800
User-agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

在 2020年12月21日 01:06, Dmitry V. Levin 写道:
> Hi,
> 
> 
> Sorry, your patch fails to apply because it's corrupted,
> could you submit a patch that does apply, please?
> 

It's the new patch based on commit ff53d915, please review and test.
Thanks. 

>From 23c4c4188e775eec8c140340d10eb055560ff464 Mon Sep 17 00:00:00 2001
From: Xiaotian Wu <wuxiaotian@loongson.cn>
Date: Thu, 3 Dec 2020 14:18:08 +0800
Subject: [PATCH] Recgnize loongarch32, loongarch64 and loongarchx32

        * config.guess (loongarch32:Linux:*:*, loongarch64:Linux:*:*, 
loongarchx32:Linux:*:*): New.
        * config.sub (loongarch32, loongarch64, loongarchx32): New.
        * testsuite/config-sub.data: Add loongarch32, loongarch64, loongarchx32 
test cases.
        * testsuite/config-guess.data: Add loongarch32, loongarch64, 
loongarchx32 test cases.
---
 config.guess                |  3 +++
 config.sub                  |  1 +
 testsuite/config-guess.data |  3 +++
 testsuite/config-sub.data   | 12 ++++++++++++
 4 files changed, 19 insertions(+)

diff --git a/config.guess b/config.guess
index 699b3a1..7154420 100755
--- a/config.guess
+++ b/config.guess
@@ -996,6 +996,9 @@ EOF
     k1om:Linux:*:*)
        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
        exit ;;
+    loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
+       echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
+       exit ;;
     m32r*:Linux:*:*)
        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
        exit ;;
diff --git a/config.sub b/config.sub
index 19c9553..6ddd1ce 100755
--- a/config.sub
+++ b/config.sub
@@ -1185,6 +1185,7 @@ case $cpu-$vendor in
                        | k1om \
                        | le32 | le64 \
                        | lm32 \
+                       | loongarch32 | loongarch64 | loongarchx32 \
                        | m32c | m32r | m32rle \
                        | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | 
m68k \
                        | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data
index 2ce2d79..d7e7fc2 100644
--- a/testsuite/config-guess.data
+++ b/testsuite/config-guess.data
@@ -63,6 +63,9 @@ i86xen | 5.0 | AuroraUX | ignored | ignored | 
i386-pc-auroraux5.0
 i86xen | 5.6 | SunOS | ignored | ignored | i386-pc-solaris2.6
 IA64 | 6.0 | Interix | ignored | ignored | ia64-unknown-interix6.0
 k1om | 2.6.38 | Linux | ignored | ignored | k1om-unknown-linux-gnu
+loongarch32 | ignored | Linux | ignored | ignored | 
loongarch32-unknown-linux-gnu
+loongarch64 | ignored | Linux | ignored | ignored | 
loongarch64-unknown-linux-gnu
+loongarchx32 | ignored | Linux | ignored | ignored | 
loongarchx32-unknown-linux-gnu
 m88k | 7.0 | CX/UX | ignored | ignored | m88k-harris-cxux7
 macppc | 1.0 | MirBSD | ignored | ignored | powerpc-unknown-mirbsd1.0
 mips | 1.0 | OSF1 | ignored | ignored | mips-dec-osf1
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index 82c9547..197f543 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -315,6 +315,18 @@ leon                                               
sparc-leon-sunos4.1.1
 leon-wrs-vxworks                               sparc-leon-vxworks
 lm32-elf                                       lm32-unknown-elf
 lm32                                           lm32-unknown-none
+loongarch32-loongson-elf                       loongarch32-loongson-elf
+loongarch32-elf                                        loongarch32-unknown-elf
+loongarch32-linux                              loongarch32-unknown-linux-gnu
+loongarch32                                    loongarch32-unknown-none
+loongarch64-loongson-elf                       loongarch64-loongson-elf
+loongarch64-elf                                        loongarch64-unknown-elf
+loongarch64-linux                              loongarch64-unknown-linux-gnu
+loongarch64                                    loongarch64-unknown-none
+loongarchx32-loongson-elf                      loongarchx32-loongson-elf
+loongarchx32-elf                               loongarchx32-unknown-elf
+loongarchx32-linux                             loongarchx32-unknown-linux-gnu
+loongarchx32                                   loongarchx32-unknown-none
 m3230                                          mips-mips-sysv
 m32c-elf                                       m32c-unknown-elf
 m32c                                           m32c-unknown-none
-- 
2.28.0



-- 
Best Regards.

Xiaotian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]