]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
MIPS: Default to --with-llsc for the R5900 Linux target as well
authorFredrik Noring <noring@nocrew.org>
Mon, 12 Nov 2018 23:16:40 +0000 (23:16 +0000)
committerMaciej W. Rozycki <macro@gcc.gnu.org>
Mon, 12 Nov 2018 23:16:40 +0000 (23:16 +0000)
The Linux kernel requires and emulates LL and SC for the R5900 too.  The
special --without-llsc default for the R5900 is therefore not applicable
in that case.

Reviewed-by: Maciej W. Rozycki <macro@linux-mips.org>
2018-11-12  Fredrik Noring  <noring@nocrew.org>

gcc/
* config.gcc: Update with-llsc defaults for MIPS r5900.

From-SVN: r266038

gcc/ChangeLog
gcc/config.gcc

index b4195db10328d2e52640ac30df8dbc9cacf47c36..fd352724cefe693a122ab6d46fdde6ab1ce58feb 100644 (file)
@@ -1,3 +1,7 @@
+2018-11-12  Fredrik Noring  <noring@nocrew.org>
+
+       * config.gcc: Update with-llsc defaults for MIPS r5900.
+
 2018-11-12  Martin Liska  <mliska@suse.cz>
 
        PR gcov-profile/87442
index e2b99469ddf766e7d4f1f9a0a775cf32b261b808..8525cb5cb139bf3e1b76abec8e591813c16d40b7 100644 (file)
@@ -3795,14 +3795,14 @@ fi
 # Infer a default setting for --with-llsc.
 if test x$with_llsc = x; then
   case ${target} in
-    mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
-      # The R5900 doesn't support LL(D) and SC(D).
-      with_llsc=no
-      ;;
     mips*-*-linux*)
       # The kernel emulates LL and SC where necessary.
       with_llsc=yes
       ;;
+    mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
+      # The R5900 doesn't support LL(D) and SC(D).
+      with_llsc=no
+      ;;
   esac
 fi