Commit 240ae287 by Fredrik Noring Committed by Maciej W. Rozycki

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
parent e18240ff
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> 2018-11-12 Martin Liska <mliska@suse.cz>
PR gcov-profile/87442 PR gcov-profile/87442
...@@ -3795,14 +3795,14 @@ fi ...@@ -3795,14 +3795,14 @@ fi
# Infer a default setting for --with-llsc. # Infer a default setting for --with-llsc.
if test x$with_llsc = x; then if test x$with_llsc = x; then
case ${target} in case ${target} in
mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
# The R5900 doesn't support LL(D) and SC(D).
with_llsc=no
;;
mips*-*-linux*) mips*-*-linux*)
# The kernel emulates LL and SC where necessary. # The kernel emulates LL and SC where necessary.
with_llsc=yes with_llsc=yes
;; ;;
mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
# The R5900 doesn't support LL(D) and SC(D).
with_llsc=no
;;
esac esac
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment