This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][PR 56727] Bypass PLT for recursive calls
- From: Yuri Gribov <tetra2005 at gmail dot com>
- To: Rainer Orth <ro at cebitec dot uni-bielefeld dot de>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jan Hubicka <hubicka at ucw dot cz>, Jakub Jelinek <jakub at redhat dot com>, Alexander Monakov <amonakov at ispras dot ru>
- Date: Sun, 2 Jul 2017 08:53:23 +0100
- Subject: Re: [PATCH][PR 56727] Bypass PLT for recursive calls
- Authentication-results: sourceware.org; auth=none
- References: <CAJOtW+4w8J6+cuRLgaz-bXQeH=WdFhgn601_hp2rmbU38Pi59A@mail.gmail.com> <ydd60fbeuzw.fsf@CeBiTec.Uni-Bielefeld.DE>
On Sat, Jul 1, 2017 at 9:56 PM, Rainer Orth <ro@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