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

Segher Boessenkool segher@kernel.crashing.org
Tue Jul 19 13:50:00 GMT 2016


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 the && ilp32 test
> guarantees it is only run on a system that supports 32-bit (a pure 32-bit
> system, or a big endian 64-bit system that still has the 32-bit libraries
> installed).

ilp32 tests for a system that is *now* compiling for 32-bit, not one
that *could*.

> I also imagine somebody could build a 64-bit big endian compiler that was
> configured with --disable-multilib, and you would not be able to do -m32.

Ah, right, we would need a test saying "can compile for PowerPC 32-bit
ELF" (this also includes powerpc-elf targets).  There is no such test
yet.  What you do now works, okay.

Thanks,


Segher



More information about the Gcc-patches mailing list