aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFredrik Noring <noring@nocrew.org>2018-11-12 23:16:40 +0000
committerMaciej W. Rozycki <macro@gcc.gnu.org>2018-11-12 23:16:40 +0000
commit240ae287a189d21ea15c93bba1f774ee69e673a7 (patch)
tree22dbd980659abcff6b8e2176db58ab1061a8cf19 /gcc
parente18240ffe2b48af6e77018e5f4e797c4b57cae72 (diff)
downloadgcc-240ae287a189d21ea15c93bba1f774ee69e673a7.zip
gcc-240ae287a189d21ea15c93bba1f774ee69e673a7.tar.gz
gcc-240ae287a189d21ea15c93bba1f774ee69e673a7.tar.bz2
MIPS: Default to --with-llsc for the R5900 Linux target as well
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config.gcc8
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b4195db..fd35272 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config.gcc b/gcc/config.gcc
index e2b9946..8525cb5 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -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