LoongArch Port: Regenerate libgcc/configure.
authorchenglulu <chenglulu@loongson.cn>
Sat, 27 Nov 2021 07:06:34 +0000 (15:06 +0800)
committerChenghua Xu <paul.hua.gm@gmail.com>
Tue, 29 Mar 2022 09:43:35 +0000 (17:43 +0800)
2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
    Lulu Cheng  <chenglulu@loongson.cn>

libgcc/ChangeLog:

* configure: Regenerate file.

libgcc/configure

index 52bf25d..1f9b2ac 100755 (executable)
@@ -2403,6 +2403,9 @@ case "${host}" in
        # sets the default TLS model and affects inlining.
        PICFLAG=-fPIC
        ;;
+    loongarch*-*-*)
+       PICFLAG=-fpic
+       ;;
     mips-sgi-irix6*)
        # PIC is the default.
        ;;
@@ -5073,7 +5076,7 @@ $as_echo "$libgcc_cv_cfi" >&6; }
 # word size rather than the address size.
 cat > conftest.c <<EOF
 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
-    || defined(__mips64)
+    || defined(__mips64) || defined(__loongarch64)
 host_address=64
 #else
 host_address=32