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

Alexander Monakov amonakov@ispras.ru
Thu Jul 16 10:47:00 GMT 2015


> 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 function.
>   
> OK for trunk?
> 
> 2015-07-16  Jiong Wang  <jiong.wang@arm.com>
> 
> gcc/
>   * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
>   declaration.
>   * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
>   * config/aarch64/aarch64.md (call_value_symbol): Check noplt
>   scenarios.
>   (call_symbol): Ditto.

Shouldn't the same treatment be applied to tailcall (sibcall_{,value_}symbol)
patterns?  I guess it could be done as a followup patch, but would be nice if
that isn't forgotten.

Alexander



More information about the Gcc-patches mailing list