Re: [RS6000] Unsupported test options for -m32

2020-10-27 Thread Segher Boessenkool
On Mon, Oct 26, 2020 at 08:48:37PM -0400, David Edelsohn wrote: > Or we enable -mcmodel= for all powerpc targets and make it a nop for > Darwin and PPC32 Linux. That is starting to sound more and more attractive (it is also how we handle pretty much all other machine flags: just igmore it if it do

Re: [RS6000] Unsupported test options for -m32

2020-10-27 Thread Segher Boessenkool
On Tue, Oct 27, 2020 at 10:05:45AM +1030, Alan Modra wrote: > aix64.opt is used for all rs6000-aix targets, linux64.opt for 64-bit > and biarch powerpc linux targets. powerpc linux errors for -mcmodel > when -m32 (yes, even when biarch Segher). >From sysv4.h: #ifndef RS6000_BI_ARCH # define SUBSU

Re: [RS6000] Unsupported test options for -m32

2020-10-27 Thread Peter Bergner via Gcc-patches
On 10/26/20 7:48 PM, David Edelsohn via Gcc-patches wrote: >> -/* { dg-do compile } */ >> +/* { dg-do compile { target { *-*-aix* || { *-*-linux* && lp64 } } } } */ >> /* { dg-require-effective-target powerpc_p8vector_ok } */ >> /* { dg-options "-O2 -mdejagnu-cpu=power8 -maltivec -mcmodel=large"

Re: [RS6000] Unsupported test options for -m32

2020-10-26 Thread David Edelsohn via Gcc-patches
On Mon, Oct 26, 2020 at 7:35 PM Alan Modra wrote: > $ grep mcmodel gcc/config/rs6000/*.opt > gcc/config/rs6000/aix64.opt:mcmodel= > gcc/config/rs6000/aix64.opt:Known code models (for use with the -mcmodel= > option): > gcc/config/rs6000/linux64.opt:mcmodel= > gcc/config/rs6000/linux64.opt:Known

Re: [RS6000] Unsupported test options for -m32

2020-10-26 Thread Alan Modra via Gcc-patches
On Mon, Oct 26, 2020 at 04:28:20PM +, Iain Sandoe wrote: > David Edelsohn via Gcc-patches wrote: > > > FAIL: gcc.target/powerpc/swaps-p8-22.c (test for excess errors) > > Excess errors: > > cc1: error: '-mcmodel' not supported in this configuration > > > > * gcc.target/powerpc/swaps-p8-22.c:

Re: [RS6000] Unsupported test options for -m32

2020-10-26 Thread Segher Boessenkool
On Sun, Oct 25, 2020 at 09:51:29PM +1030, Alan Modra wrote: > FAIL: gcc.target/powerpc/swaps-p8-22.c (test for excess errors) > Excess errors: > cc1: error: '-mcmodel' not supported in this configuration This is because your build is not biarch. We really should not allow such configurations, the

Re: [RS6000] Unsupported test options for -m32

2020-10-26 Thread Iain Sandoe via Gcc-patches
David Edelsohn via Gcc-patches wrote: FAIL: gcc.target/powerpc/swaps-p8-22.c (test for excess errors) Excess errors: cc1: error: '-mcmodel' not supported in this configuration * gcc.target/powerpc/swaps-p8-22.c: Disable for -m32. diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-22.c b/g

Re: [RS6000] Unsupported test options for -m32

2020-10-26 Thread David Edelsohn via Gcc-patches
FAIL: gcc.target/powerpc/swaps-p8-22.c (test for excess errors) Excess errors: cc1: error: '-mcmodel' not supported in this configuration * gcc.target/powerpc/swaps-p8-22.c: Disable for -m32. diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-22.c b/gcc/testsuite/gcc.target/powerpc/swaps-p8-2

[RS6000] Unsupported test options for -m32

2020-10-25 Thread Alan Modra via Gcc-patches
FAIL: gcc.target/powerpc/swaps-p8-22.c (test for excess errors) Excess errors: cc1: error: '-mcmodel' not supported in this configuration * gcc.target/powerpc/swaps-p8-22.c: Disable for -m32. diff --git a/gcc/testsuite/gcc.target/powerpc/swaps-p8-22.c b/gcc/testsuite/gcc.target/powerpc/s