>From d728eb9085d80b6c5ce1bc8b6f99859fe0f0aaa5 Mon Sep 17 00:00:00 2001 From: macro Date: Mon, 12 Nov 2018 23:16:40 +0000 Subject: [PATCH] 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 2018-11-12 Fredrik Noring gcc/ * config.gcc: Update with-llsc defaults for MIPS r5900. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/address@hidden 138bc75d-0d04-0410-961f-82ee72b054a4 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 -- 2.9.3