On Sat, Jul 1, 2017 at 9:56 PM, Rainer Orth <r...@cebitec.uni-bielefeld.de> 
wrote:
> Hi Yuri,
>
>> diff -rupN gcc/gcc/testsuite/gcc.dg/pr56727-1.c 
>> gcc-56727/gcc/testsuite/gcc.dg/pr56727-1.c
>> --- gcc/gcc/testsuite/gcc.dg/pr56727-1.c      1970-01-01 01:00:00.000000000 
>> +0100
>> +++ gcc-56727/gcc/testsuite/gcc.dg/pr56727-1.c        2017-07-01 
>> 21:36:36.000000000 +0200
>> @@ -0,0 +1,23 @@
>> +/* { dg-do compile } */
>> +/* { dg-options "-O2 -fPIC" } */
>
> both tests need to be restricted to target fpic...
>
>> +/* { dg-final { scan-assembler-not "@PLT" } } */
>
> ... and @PLT won't work everywhere, either.  Judging from gcc/config, it
> will be i386/x86_64 (except darwin), microblaze, mn10300, s390, sh, and
> xtensa at most.

Thanks Rainer, I'll update the patch. A pity that this can not be
tested in cross-platform way.

-Y

Reply via email to