[patch] Add dg-require-effective-target fpic to gcc.target/powerpc tests

Olivier Hainque hainque@adacore.com
Tue Nov 3 17:25:58 GMT 2020


Hi Segher,

> On 3 Nov 2020, at 18:00, Segher Boessenkool <segher@kernel.crashing.org> wrote:
> 
>> /* { dg-require-effective-target fpic } */
>> 
>> to a few tests in gcc.target/powerpc that do use
>> -fpic or -fPIC but don't currently query the target
>> support.

> This is fine for trunk, thanks!

Great :-)

>> --- a/gcc/testsuite/gcc.target/powerpc/pr84112.c
>> +++ b/gcc/testsuite/gcc.target/powerpc/pr84112.c
>> @@ -1,4 +1,5 @@
>> /* { dg-do compile { target powerpc*-*-* } }*/
>> +/* { dg-require-effective-target fpic } */
>> /* { dg-options "-mdejagnu-cpu=power8 -O3 -fstack-protector-strong -fpic" } */
> 
> You could make that
> 
> /* { dg-do compile } */
> 
> at the same time, if you want?  If that is easy for you, don't bother
> otherwise.

That's easy enough, will do.

Thanks for your prompt feedback!

Best Regards,

Olivier



More information about the Gcc-patches mailing list