Commit 4a985a37 by Marcus Shawcroft Committed by Marcus Shawcroft

[AArch64] Fix SYMBOL_REF symbol classification.

The symbol classification logic in correctly classifies all
SYMBOL_REF's as SYMBOL_FORCE_TO_MEM, the intention of the code is to
catch only the large memory model case.

From-SVN: r207544
parent 8c7ff9a0
2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
* config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
for SYMBOL_REF in large memory model.
2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
......
...@@ -5400,9 +5400,8 @@ aarch64_classify_symbol (rtx x, ...@@ -5400,9 +5400,8 @@ aarch64_classify_symbol (rtx x,
if (GET_CODE (x) == SYMBOL_REF) if (GET_CODE (x) == SYMBOL_REF)
{ {
if (aarch64_cmodel == AARCH64_CMODEL_LARGE if (aarch64_cmodel == AARCH64_CMODEL_LARGE)
|| CONSTANT_POOL_ADDRESS_P (x)) return SYMBOL_FORCE_TO_MEM;
return SYMBOL_FORCE_TO_MEM;
if (aarch64_tls_symbol_p (x)) if (aarch64_tls_symbol_p (x))
return aarch64_classify_tls_symbol (x); return aarch64_classify_tls_symbol (x);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment