Commit 7eda14e1 by Marcus Shawcroft Committed by Marcus Shawcroft

[AArch64] Fix layout of aarch64_cannot_force_const_mem.

From-SVN: r200532
parent c822f852
2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com> 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
* config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
layout.
2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
* config/aarch64/aarch64-protos.h (aarch64_symbol_type): * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
Update comment w.r.t SYMBOL_TINY_ABSOLUTE. Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
......
/* Machine description for AArch64 architecture.
1;3201;0c/* Machine description for AArch64 architecture.
Copyright (C) 2009-2013 Free Software Foundation, Inc. Copyright (C) 2009-2013 Free Software Foundation, Inc.
Contributed by ARM Ltd. Contributed by ARM Ltd.
...@@ -2687,12 +2688,14 @@ static bool ...@@ -2687,12 +2688,14 @@ static bool
aarch64_cannot_force_const_mem (enum machine_mode mode ATTRIBUTE_UNUSED, rtx x) aarch64_cannot_force_const_mem (enum machine_mode mode ATTRIBUTE_UNUSED, rtx x)
{ {
rtx base, offset; rtx base, offset;
if (GET_CODE (x) == HIGH) if (GET_CODE (x) == HIGH)
return true; return true;
split_const (x, &base, &offset); split_const (x, &base, &offset);
if (GET_CODE (base) == SYMBOL_REF || GET_CODE (base) == LABEL_REF) if (GET_CODE (base) == SYMBOL_REF || GET_CODE (base) == LABEL_REF)
return (aarch64_classify_symbol (base, SYMBOL_CONTEXT_ADR) != SYMBOL_FORCE_TO_MEM); return (aarch64_classify_symbol (base, SYMBOL_CONTEXT_ADR)
!= SYMBOL_FORCE_TO_MEM);
return aarch64_tls_referenced_p (x); return aarch64_tls_referenced_p (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