Re: [PATCH], PR 71493, Fix PowerPC ABI breakage on GCC trunk/6.1

2016-07-19 Thread Segher Boessenkool
On Mon, Jul 18, 2016 at 11:40:03PM -0400, Michael Meissner wrote: > > > +/* { dg-do compile { target { powerpc*-*-linux* && ilp32 } } } */ > > > +/* { dg-options "-O2 -m32 -msvr4-struct-return" } */ > > I think you can drop the ilp32. > > You cannot use -m32 on a 64-bit little endian system, so t

Re: [PATCH], PR 71493, Fix PowerPC ABI breakage on GCC trunk/6.1

2016-07-18 Thread Michael Meissner
On Mon, Jul 18, 2016 at 06:42:02PM -0500, Segher Boessenkool wrote: > On Mon, Jul 18, 2016 at 07:25:09PM -0400, Michael Meissner wrote: > > When I added the support for __float128 last year, I accidentally broke > > returning structures containing a single float or double item using the > > System

Re: [PATCH], PR 71493, Fix PowerPC ABI breakage on GCC trunk/6.1

2016-07-18 Thread Segher Boessenkool
On Mon, Jul 18, 2016 at 07:25:09PM -0400, Michael Meissner wrote: > When I added the support for __float128 last year, I accidentally broke > returning structures containing a single float or double item using the System > V 32-bit calling sequence. > > This patch goes back to using SCALAR_FLOAT_T

[PATCH], PR 71493, Fix PowerPC ABI breakage on GCC trunk/6.1

2016-07-18 Thread Michael Meissner
When I added the support for __float128 last year, I accidentally broke returning structures containing a single float or double item using the System V 32-bit calling sequence. This patch goes back to using SCALAR_FLOAT_TYPE_P (which looks at the tree node) instead of SCALAR_FLOAT_MODE_NOT_VECTOR