This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] linux support for SH
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: [PATCH] linux support for SH
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 06 Sep 2000 19:51:29 -0600
- cc: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>, gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <firstname.lastname@example.org>you write:
> On Aug 29, 2000, kaz Kojima <email@example.com> wrote:
> > Here's a patch to support a new sh-unknown-linux-gnu target for Hitachi
> > SH processors. This is a patch for (current cvs tree + our PIC patch).
> And here's the patch for GNU/Linux/SH that we currently have at Red
> Hat. Ok to install?
> > Changes for "fpscr_values" (place it at .data)
> What's the point of doing this?
> In fact, now that you mention it, I recall Joern gave an interesting
> idea: we could have fpscr_values be in a fixed (low) position in
> virtual memory, set up by the kernel, so that we could avoid all the
> hassle of PIC addressing when referring to it.
> Content-Type: text/x-patch
> Content-Disposition: inline; filename=shlin-gcc.patch
> Index: gcc/ChangeLog
> from Niibe Yutaka <firstname.lastname@example.org>, Kaz Kojima <email@example.com>
> , Alexandre Oliva <firstname.lastname@example.org>
> * configure.in (sh-*-linux*): Added.
> * configure: Rebuilt.
> * config/sh/t-linux: New file.
> * config/sh/sh.h (USERMODE_BIT): Define.
> (TARGET_USERMODE): Likewise.
> (TARGET_SWITCHES): New switches for the bits above.
> (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
> * config/sh/linux.h: New file.
> * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
> underscore on linux.
> (L_sdivsi3, L_udivsi3): Define for linux.
> (L_ic_invalidate): Define.
> * invoke.texi (SH Options): Document -musermode.
Approved. Please install.