diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 652d2c902aa..5f89ce16611 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 6a41644045e..c975bfb9d70 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;