aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2016-11-09 21:56:21 +0100
committerYvan Roux <yvan.roux@linaro.org>2016-11-14 17:16:46 +0100
commit03850689f4c165e88cec81696d9d722e76a86c85 (patch)
treea3b1dd537640979bb7fa89b1192ad9ce6cf407c0
parente247e3f24d773695c74ec488e11bfb9f50e14452 (diff)
gcc/
Revert backport from trunk r239561. 2016-08-18 Tamar Christina <tamar.christina@arm.com> Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * varasm.c (default_use_anchors_for_symbol_p): Reject too large * decls. This reverts commit 11879870dc041028bcb8d078d9ddbd7e400dd03f. Change-Id: Iae5d442cf1a80e74f6f07817d337ce63bdf05234
-rw-r--r--gcc/varasm.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 580f5f51525..b0f2af03de4 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -6772,15 +6772,6 @@ default_use_anchors_for_symbol_p (const_rtx symbol)
sections that should be marked as small in the section directive. */
if (targetm.in_small_data_p (decl))
return false;
-
- /* Don't use section anchors for decls that won't fit inside a single
- anchor range to reduce the amount of instructions require to refer
- to the entire declaration. */
- if (decl && DECL_SIZE (decl)
- && tree_to_shwi (DECL_SIZE (decl))
- >= (targetm.max_anchor_offset * BITS_PER_UNIT))
- return false;
-
}
return true;
}