On Wed, 2018-01-10 at 06:25 -0800, Ian Lance Taylor wrote:
> 
> 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.

On SH the calling convention depends on the processor features which
are available/used.  For example there is a "no-fpu" mode which uses
software fp and passes all fp values in gp regs, while the "normal"
mode is to pass fp values in fp regs.  Some of the CPU variants like
SH2 imply "no-fpu".

Cheers,
Oleg

Reply via email to