public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v2] MIPS: Default to --with-llsc for the R5900 Linux target as well
@ 2018-10-19 21:08 Fredrik Noring
  2018-11-07 16:32 ` Fredrik Noring
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Noring @ 2018-10-19 21:08 UTC (permalink / raw)
  To: Matthew Fortune, Maciej W. Rozycki, gcc-patches; +Cc: Jürgen Urban

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>
---
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] MIPS: Default to --with-llsc for the R5900 Linux target as well
  2018-10-19 21:08 [PATCH v2] MIPS: Default to --with-llsc for the R5900 Linux target as well Fredrik Noring
@ 2018-11-07 16:32 ` Fredrik Noring
  2018-11-09 22:01   ` mfortune
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Noring @ 2018-11-07 16:32 UTC (permalink / raw)
  To: gcc-patches; +Cc: Maciej W. Rozycki, Jürgen Urban, Matthew Fortune

Hello global GCC reviewers,

Would it be possible to apply the reviewed patch below?

Thank you,
Fredrik

On Fri, Oct 19, 2018 at 08:33:33PM +0200, Fredrik Noring wrote:
> 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>
> ---
> 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
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH v2] MIPS: Default to --with-llsc for the R5900 Linux target as well
  2018-11-07 16:32 ` Fredrik Noring
@ 2018-11-09 22:01   ` mfortune
  2018-11-12 23:22     ` Maciej W. Rozycki
  0 siblings, 1 reply; 4+ messages in thread
From: mfortune @ 2018-11-09 22:01 UTC (permalink / raw)
  To: 'Fredrik Noring', gcc-patches
  Cc: 'Maciej W. Rozycki', 'Jürgen Urban'

Hi Fredrik,

> Would it be possible to apply the reviewed patch below?

Apologies for the total lack of response from me. Thank-you for your
efforts to get this noticed!

The patch looks OK to me. I didn't see a ChangeLog entry anywhere but
something like the following would be appropriate.

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

I'll do what I can to help you get the various changes done for r5900;
I know there have been attempts before but they faded away for one
reason or another. As Maciej has said, your contribution is really
appreciated, and for this one, it is obvious enough to go in prior to
your FSF copyright assignment coming through.

Maciej: I'm not able to commit this for Fredrik at the moment, would
you mind doing that for him?

Thanks,
Matthew

> 
> Thank you,
> Fredrik
> 
> On Fri, Oct 19, 2018 at 08:33:33PM +0200, Fredrik Noring wrote:
> > 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>
> > ---
> > 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
> >

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH v2] MIPS: Default to --with-llsc for the R5900 Linux target as well
  2018-11-09 22:01   ` mfortune
@ 2018-11-12 23:22     ` Maciej W. Rozycki
  0 siblings, 0 replies; 4+ messages in thread
From: Maciej W. Rozycki @ 2018-11-12 23:22 UTC (permalink / raw)
  To: Matthew Fortune
  Cc: 'Fredrik Noring', gcc-patches, 'Jürgen Urban'

On Fri, 9 Nov 2018, mfortune@gmail.com wrote:

> Maciej: I'm not able to commit this for Fredrik at the moment, would
> you mind doing that for him?

 Sure, I have applied the change now, using your proposed ChangeLog entry.

  Maciej

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-12 23:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-19 21:08 [PATCH v2] MIPS: Default to --with-llsc for the R5900 Linux target as well Fredrik Noring
2018-11-07 16:32 ` Fredrik Noring
2018-11-09 22:01   ` mfortune
2018-11-12 23:22     ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).