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
This commit is contained in:
parent
cb90f114b2
commit
94c2e46ca3
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2014-06-07 Jan Hubicka <hubicka@ucw.cz>
|
||||||
|
|
||||||
* cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
|
* cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
|
||||||
|
|
|
@ -82,6 +82,7 @@ along with GCC; see the file COPYING3. If not see
|
||||||
#include "pointer-set.h"
|
#include "pointer-set.h"
|
||||||
#include "calls.h"
|
#include "calls.h"
|
||||||
#include "gimple-expr.h"
|
#include "gimple-expr.h"
|
||||||
|
#include "varasm.h"
|
||||||
|
|
||||||
/* Return true when NODE can not be local. Worker for cgraph_local_node_p. */
|
/* 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)
|
can_replace_by_local_alias (symtab_node *node)
|
||||||
{
|
{
|
||||||
return (symtab_node_availability (node) > AVAIL_OVERWRITABLE
|
return (symtab_node_availability (node) > AVAIL_OVERWRITABLE
|
||||||
|
&& !decl_binds_to_current_def_p (node->decl)
|
||||||
&& !symtab_can_be_discarded (node));
|
&& !symtab_can_be_discarded (node));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue