[PATCH,AIX] go: disable mvsx and maltivec for aix/ppc

David Edelsohn dje.gcc@gmail.com
Tue Apr 2 02:06:00 GMT 2019


On Mon, Apr 1, 2019 at 9:50 PM Ian Lance Taylor <iant@golang.org> wrote:
>
> On Mon, Apr 1, 2019 at 12:43 AM CHIGOT, CLEMENT <clement.chigot@atos.net> wrote:
> >
> > Description:
> >   * This patch removes -mvsx and -maltivec for go aix/ppc.
> >      These options don't seem compatible with Go stack layout.
>
> Can you give some more details on the problem?  gccgo should just be
> using the regular stack layout, I can't think of any reason why these
> options would not be compatible.

Some Altivec instructions require stricter alignment and 32 bit AIX
does not impose sufficient alignment in the stack, so GCC Go silently
references the wrong address.

GCC Go should be able to align the stack properly on AIX. In the
interim, we need to disable generation of Altivec/VSX.

Thanks, David



More information about the Gcc-patches mailing list