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" } */
> 
> This is okay.
> 
> There's no pretty solution.
> 
> Or we enable -mcmodel= for all powerpc targets and make it a nop for
> Darwin and PPC32 Linux.

...or we could create a mcmodel_ok effective target test that could be used.
Ie, keep the ugly wart in target-supports.exp.

Peter

Reply via email to