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 <ma...@linux-mips.org> --- Changes in v2: - Double spacing instead of single spacing in commit message --- gcc/config.gcc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 720e6a7373d..68c34b16123 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3711,14 +3711,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 -- 2.18.1