]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch Port: Regenerate configure
authorchenglulu <chenglulu@loongson.cn>
Sat, 27 Nov 2021 07:09:11 +0000 (15:09 +0800)
committerChenghua Xu <paul.hua.gm@gmail.com>
Tue, 29 Mar 2022 09:43:32 +0000 (17:43 +0800)
2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
    Lulu Cheng  <chenglulu@loongson.cn>

ChangeLog:

* configure.ac: Add LoongArch tuples.
* configure: Regenerate.

config/ChangeLog:

* picflag.m4: Default add build option '-fpic' for LoongArch.

config/picflag.m4
configure
configure.ac

index 8b106f9af8868e6816633a0edf4dbcfad729520e..0aefcf619bf6a553513feadf05cbe88d8c8f43c9 100644 (file)
@@ -44,6 +44,9 @@ case "${$2}" in
        # sets the default TLS model and affects inlining.
        $1=-fPIC
        ;;
+    loongarch*-*-*)
+       $1=-fpic
+       ;;
     mips-sgi-irix6*)
        # PIC is the default.
        ;;
index 69d8fc046c3933a7a8c50774ee15937c8f9b977f..5dcaab14ae99c0a9f2ec8c0f1762c87eba5135cf 100755 (executable)
--- a/configure
+++ b/configure
@@ -3056,7 +3056,7 @@ case "${ENABLE_GOLD}" in
       # Check for target supported by gold.
       case "${target}" in
         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
-        | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
+        | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
          configdirs="$configdirs gold"
          if test x${ENABLE_GOLD} = xdefault; then
            default_ld=gold
@@ -3642,6 +3642,9 @@ case "${target}" in
   i[3456789]86-*-*)
     libgloss_dir=i386
     ;;
+  loongarch*-*-*)
+    libgloss_dir=loongarch
+    ;;
   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
     libgloss_dir=m68hc11
     ;;
@@ -4026,6 +4029,11 @@ case "${target}" in
   wasm32-*-*)
     noconfigdirs="$noconfigdirs ld"
     ;;
+  loongarch*-*-linux*)
+    ;;
+  loongarch*-*-*)
+    noconfigdirs="$noconfigdirs gprof"
+    ;;
 esac
 
 # If we aren't building newlib, then don't build libgloss, since libgloss
index d0f6d215b99c7ebadac2f747fee7d1553cd96b47..85977482aeeb09eed759ce04478c6905ac044f52 100644 (file)
@@ -353,7 +353,7 @@ case "${ENABLE_GOLD}" in
       # Check for target supported by gold.
       case "${target}" in
         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
-        | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
+        | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
          configdirs="$configdirs gold"
          if test x${ENABLE_GOLD} = xdefault; then
            default_ld=gold
@@ -899,6 +899,9 @@ case "${target}" in
   i[[3456789]]86-*-*)
     libgloss_dir=i386
     ;;
+  loongarch*-*-*)
+    libgloss_dir=loongarch
+    ;;
   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
     libgloss_dir=m68hc11
     ;;
@@ -1283,6 +1286,11 @@ case "${target}" in
   wasm32-*-*)
     noconfigdirs="$noconfigdirs ld"
     ;;
+  loongarch*-*-linux*)
+    ;;
+  loongarch*-*-*)
+    noconfigdirs="$noconfigdirs gprof"
+    ;;
 esac
 
 # If we aren't building newlib, then don't build libgloss, since libgloss