[AArch64] Tighten direct call pattern to repair -fno-plt
authorJiong Wang <jiong.wang@arm.com>
Thu, 6 Aug 2015 15:57:36 +0000 (15:57 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Thu, 6 Aug 2015 15:57:36 +0000 (15:57 +0000)
commitb60d63cbaee16a95790c09dd6c23e346639ee180
tree16f181e588d7fcb32f7b08a951bff9bb47e12447
parentc1153c1987ba906a8763a0c0de49fe2e6b3937f0
[AArch64] Tighten direct call pattern to repair -fno-plt

2015-08-06  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): Likewise.

gcc/testsuite/
  * gcc.target/aarch64/noplt_1.c: New testcase.
  * gcc.target/aarch64/noplt_2.c: Likewise.

From-SVN: r226681
gcc/ChangeLog
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/noplt_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/noplt_2.c [new file with mode: 0644]