diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-06-08 18:47:57 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-06-08 16:47:57 +0000 |
commit | 94c2e46ca326570458effe217e1689a74d7dd042 (patch) | |
tree | fd1ad66ca98ea3b8eaa8d5825ced273f80d0389d /gcc | |
parent | cb90f114b241983987c062e99e4dd0fd12da2513 (diff) | |
download | gcc-94c2e46ca326570458effe217e1689a74d7dd042.zip gcc-94c2e46ca326570458effe217e1689a74d7dd042.tar.gz gcc-94c2e46ca326570458effe217e1689a74d7dd042.tar.bz2 |
ipa-visibility.c: Include varasm.h
* ipa-visibility.c: Include varasm.h
(can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
From-SVN: r211356
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-visibility.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0a1253..c7767ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2014-06-07 Jan Hubicka <hubicka@ucw.cz> + * ipa-visibility.c: Include varasm.h + (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p. + +2014-06-07 Jan Hubicka <hubicka@ucw.cz> + * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before outputting aliases. diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 7886722..6458840 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -82,6 +82,7 @@ along with GCC; see the file COPYING3. If not see #include "pointer-set.h" #include "calls.h" #include "gimple-expr.h" +#include "varasm.h" /* Return true when NODE can not be local. Worker for cgraph_local_node_p. */ @@ -340,6 +341,7 @@ bool can_replace_by_local_alias (symtab_node *node) { return (symtab_node_availability (node) > AVAIL_OVERWRITABLE + && !decl_binds_to_current_def_p (node->decl) && !symtab_can_be_discarded (node)); } |