From 153784dea07407de441e7a987fd3a30326558500 Mon Sep 17 00:00:00 2001 From: hubicka Date: Sun, 19 Jan 2014 23:12:24 +0000 Subject: [PATCH] * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206784 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/varasm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 652d2c902aa5..5f89ce166117 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-01-19 Jan Hubicka + + * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p. + 2014-01-19 John David Anglin * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of diff --git a/gcc/varasm.c b/gcc/varasm.c index 6a41644045ef..c975bfb9d702 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4060,7 +4060,7 @@ compute_reloc_for_constant (tree exp) break; } - if (TREE_PUBLIC (tem)) + if (!targetm.binds_local_p (tem)) reloc |= 2; else reloc |= 1; -- 2.11.4.GIT