[AArch64] Mark GOT related MEM rtx as const to help RTL loop IV
authorJiong Wang <jiong.wang@arm.com>
Fri, 10 Jul 2015 12:20:54 +0000 (12:20 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Fri, 10 Jul 2015 12:20:54 +0000 (12:20 +0000)
commit53021678c582ec1afd38f0ed03fde6c433d639df
tree142087cbadbd7533a8e1d71109873929f13e6f5c
parent9fdcd34e0fc48867dfc4d00dad09bdcbb4562db1
[AArch64] Mark GOT related MEM rtx as const to help RTL loop IV

  gcc/
    * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Mark mem
    as READONLY and NOTRAP for PIC symbol.

  gcc/testsuite/
    * gcc.target/aarch64/got_mem_hoist_1.c: New test.

From-SVN: r225669
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/got_mem_hoist_1.c [new file with mode: 0644]