[COMMITTED][AArch64] Tighten direct call pattern to repair -fno-plt

2015-08-06 Thread Jiong Wang
h64/aarch64.md (call_value_symbol): Check noplt >> scenarios. >> (call_symbol): Ditto. >> >> gcc/testsuite/ >> * gcc.target/aarch64/noplt_1.c: New testcase. >> * gcc.target/aarch64/noplt_2.c: Ditto. >> > > ((Though do check the ChangeLog

Re: [AArch64] Tighten direct call pattern to repair -fno-plt

2015-08-04 Thread James Greenhalgh
On Thu, Jul 16, 2015 at 11:21:25AM +0100, Jiong Wang wrote: > > Jeff Law writes: > > > On 06/23/2015 02:29 AM, Ramana Radhakrishnan wrote: > > > >>> If you try disabling the REG_EQUAL note generation [*], you'll probably > >>> find a > >>> performance regression on arm32 (and probably on aarch64

Re: [AArch64] Tighten direct call pattern to repair -fno-plt

2015-07-16 Thread Jiong Wang
Alexander Monakov writes: >> Attachment is the patch which repair -fno-plt support for AArch64. >> >> aarch64_is_noplt_call_p will only be true if: >> >> * gcc is generating position independent code. >> * function symbol has declaration. >> * either -fno-plt or "(no_plt)" attribute speci

Re: [AArch64] Tighten direct call pattern to repair -fno-plt

2015-07-16 Thread Alexander Monakov
> Attachment is the patch which repair -fno-plt support for AArch64. > > aarch64_is_noplt_call_p will only be true if: > > * gcc is generating position independent code. > * function symbol has declaration. > * either -fno-plt or "(no_plt)" attribute specified. > * it's a external functio

[AArch64] Tighten direct call pattern to repair -fno-plt

2015-07-16 Thread Jiong Wang
Jeff Law writes: > On 06/23/2015 02:29 AM, Ramana Radhakrishnan wrote: > >>> If you try disabling the REG_EQUAL note generation [*], you'll probably >>> find a >>> performance regression on arm32 (and probably on aarch64 as well? >>> we only >> >> IMHO disabling the REG_EQUAL note generation is