summaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
authorbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-31 18:46:05 +0000
committerbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-31 18:46:05 +0000
commit3e76c73d74408b80d7e33a9589021ab05ae0f94d (patch)
treeeec692b17e05c30eceb8a803d7f44094c82ca16c /gcc/varpool.c
parent1dbe1bb19c674745941ca05ed462363916ae8705 (diff)
parent9635c0c3aa804dd411dfdcaa3322bd6096dbaf0c (diff)
downloadgcc-3e76c73d74408b80d7e33a9589021ab05ae0f94d.tar.gz
Merged with trunk at revision 188063.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@188074 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index ceb16f9bbca..b0063c16328 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -259,7 +259,7 @@ varpool_analyze_node (struct varpool_node *node)
node->analyzed = true;
}
-/* Assemble thunks and aliases asociated to NODE. */
+/* Assemble thunks and aliases associated to NODE. */
static void
assemble_aliases (struct varpool_node *node)
@@ -270,7 +270,7 @@ assemble_aliases (struct varpool_node *node)
if (ref->use == IPA_REF_ALIAS)
{
struct varpool_node *alias = ipa_ref_referring_varpool_node (ref);
- assemble_alias (alias->symbol.decl,
+ do_assemble_alias (alias->symbol.decl,
DECL_ASSEMBLER_NAME (alias->alias_of));
assemble_aliases (alias);
}
@@ -349,7 +349,6 @@ varpool_remove_unreferenced_decls (void)
if (cgraph_dump_file)
fprintf (cgraph_dump_file, "Trivially needed variables:");
- finish_aliases_1 ();
FOR_EACH_DEFINED_VARIABLE (node)
{
if (node->analyzed
@@ -450,7 +449,7 @@ add_new_static_var (tree type)
tree new_decl;
struct varpool_node *new_node;
- new_decl = create_tmp_var (type, NULL);
+ new_decl = create_tmp_var_raw (type, NULL);
DECL_NAME (new_decl) = create_tmp_var_name (NULL);
TREE_READONLY (new_decl) = 0;
TREE_STATIC (new_decl) = 1;
@@ -458,9 +457,7 @@ add_new_static_var (tree type)
DECL_CONTEXT (new_decl) = NULL_TREE;
DECL_ABSTRACT (new_decl) = 0;
lang_hooks.dup_lang_specific_decl (new_decl);
- create_var_ann (new_decl);
new_node = varpool_node (new_decl);
- add_referenced_var (new_decl);
varpool_finalize_decl (new_decl);
return new_node->symbol.decl;
@@ -511,7 +508,7 @@ varpool_extra_name_alias (tree alias, tree decl)
return alias_node;
}
-/* Call calback on NODE and aliases asociated to NODE.
+/* Call calback on NODE and aliases associated to NODE.
When INCLUDE_OVERWRITABLE is false, overwritable aliases and thunks are
skipped. */