aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/symtab.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6e9faf9..c9270c8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-25 Kai Tietz <ktietz@redhat.com>
+
+ PR target/64212
+ * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
+ (symtab::noninterposable_alias): Likewise.
+
2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65167
diff --git a/gcc/symtab.c b/gcc/symtab.c
index 7a70b10..957457b 100644
--- a/gcc/symtab.c
+++ b/gcc/symtab.c
@@ -1165,6 +1165,7 @@ symtab_node::make_decl_local (void)
DECL_VISIBILITY_SPECIFIED (decl) = 0;
DECL_VISIBILITY (decl) = VISIBILITY_DEFAULT;
TREE_PUBLIC (decl) = 0;
+ DECL_DLLIMPORT_P (decl) = 0;
if (!DECL_RTL_SET_P (decl))
return;
@@ -1534,7 +1535,6 @@ symtab_node::noninterposable_alias (symtab_node *node, void *data)
!= flags_from_decl_or_type (fn->decl))
|| DECL_ATTRIBUTES (node->decl) != DECL_ATTRIBUTES (fn->decl))
return false;
-
*(symtab_node **)data = node;
return true;
}
@@ -1566,6 +1566,7 @@ symtab_node::noninterposable_alias (void)
/* Otherwise create a new one. */
new_decl = copy_node (node->decl);
+ DECL_DLLIMPORT_P (new_decl) = 0;
DECL_NAME (new_decl) = clone_function_name (node->decl, "localalias");
if (TREE_CODE (new_decl) == FUNCTION_DECL)
DECL_STRUCT_FUNCTION (new_decl) = NULL;