This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2] libgo: Add support for sh
- From: Ian Lance Taylor <iant at golang dot org>
- To: John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, gofrontend-dev at googlegroups dot com
- Date: Wed, 10 Jan 2018 06:25:18 -0800
- Subject: Re: [PATCH v2] libgo: Add support for sh
- Authentication-results: sourceware.org; auth=none
- References: <b8f608b2-c8e7-19a7-624a-c694ec48e9a6@physik.fu-berlin.de>
On Sun, Dec 17, 2017 at 4:38 AM, John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> wrote:
>
> This is the second version of my patch to add support for SuperH
> in libgo. The changes over my first patch in [1] are:
>
> * account for little- and big-endian targets
> * account for sh3- and sh4-specific parameters
>
> I have not added support for SH-1 and SH-2 targets for now as
> most Linux distributions with SH support usually target sh3 and
> sh4 only.
>
> I have already signed the Google CLA in the past when I contributed
> a small patch to Kubernetes.
Thanks. I finally took a look at this. I don't know much about SH,
but I don't think we want to add each SH variant as a separate GOARCH
value. As you can see from the list you modified in
ibgo/go/go/build/syslist.go, the difference between GOARCH values is
essentially the calling convention. There are many different kinds of
x86 processors, but since the only calling convention difference is
between 32-bit and 64-bit, the list has only 386 and amd64. Similarly
it seems to me we should have only sh and shbe in the list for SH
processors.
Ian