summaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 1e469b3a253..0f36cd139aa 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -78,7 +78,7 @@ varpool_remove_node_removal_hook (struct varpool_node_hook_list *entry)
/* Call all node removal hooks. */
static void
-varpool_call_node_removal_hooks (struct varpool_node *node)
+varpool_call_node_removal_hooks (varpool_node *node)
{
struct varpool_node_hook_list *entry = first_varpool_node_removal_hook;
while (entry)
@@ -119,7 +119,7 @@ varpool_remove_variable_insertion_hook (struct varpool_node_hook_list *entry)
/* Call all node insertion hooks. */
void
-varpool_call_variable_insertion_hooks (struct varpool_node *node)
+varpool_call_variable_insertion_hooks (varpool_node *node)
{
struct varpool_node_hook_list *entry = first_varpool_variable_insertion_hook;
while (entry)
@@ -131,19 +131,19 @@ varpool_call_variable_insertion_hooks (struct varpool_node *node)
/* Allocate new callgraph node and insert it into basic data structures. */
-struct varpool_node *
+varpool_node *
varpool_create_empty_node (void)
{
- struct varpool_node *node = ggc_alloc_cleared_varpool_node ();
+ varpool_node *node = ggc_alloc_cleared_varpool_node ();
node->type = SYMTAB_VARIABLE;
return node;
}
/* Return varpool node assigned to DECL. Create new one when needed. */
-struct varpool_node *
+varpool_node *
varpool_node_for_decl (tree decl)
{
- struct varpool_node *node = varpool_get_node (decl);
+ varpool_node *node = varpool_get_node (decl);
gcc_checking_assert (TREE_CODE (decl) == VAR_DECL);
if (node)
return node;
@@ -156,7 +156,7 @@ varpool_node_for_decl (tree decl)
/* Remove node from the varpool. */
void
-varpool_remove_node (struct varpool_node *node)
+varpool_remove_node (varpool_node *node)
{
tree init;
varpool_call_node_removal_hooks (node);
@@ -174,7 +174,7 @@ varpool_remove_node (struct varpool_node *node)
/* Renove node initializer when it is no longer needed. */
void
-varpool_remove_initializer (struct varpool_node *node)
+varpool_remove_initializer (varpool_node *node)
{
if (DECL_INITIAL (node->decl)
&& !DECL_IN_CONSTANT_POOL (node->decl)
@@ -192,7 +192,7 @@ varpool_remove_initializer (struct varpool_node *node)
/* Dump given cgraph node. */
void
-dump_varpool_node (FILE *f, struct varpool_node *node)
+dump_varpool_node (FILE *f, varpool_node *node)
{
dump_symtab_base (f, node);
fprintf (f, " Availability: %s\n",
@@ -215,7 +215,7 @@ dump_varpool_node (FILE *f, struct varpool_node *node)
void
dump_varpool (FILE *f)
{
- struct varpool_node *node;
+ varpool_node *node;
fprintf (f, "variable pool:\n\n");
FOR_EACH_VARIABLE (node)
@@ -231,7 +231,7 @@ debug_varpool (void)
}
/* Given an assembler name, lookup node. */
-struct varpool_node *
+varpool_node *
varpool_node_for_asm (tree asmname)
{
if (symtab_node *node = symtab_node_for_asm (asmname))
@@ -247,7 +247,7 @@ varpool_node_for_asm (tree asmname)
tree
ctor_for_folding (tree decl)
{
- struct varpool_node *node, *real_node;
+ varpool_node *node, *real_node;
tree real_decl;
if (TREE_CODE (decl) != VAR_DECL
@@ -337,7 +337,7 @@ ctor_for_folding (tree decl)
void
varpool_add_new_variable (tree decl)
{
- struct varpool_node *node;
+ varpool_node *node;
varpool_finalize_decl (decl);
node = varpool_node_for_decl (decl);
varpool_call_variable_insertion_hooks (node);
@@ -348,7 +348,7 @@ varpool_add_new_variable (tree decl)
/* Return variable availability. See cgraph.h for description of individual
return values. */
enum availability
-cgraph_variable_initializer_availability (struct varpool_node *node)
+cgraph_variable_initializer_availability (varpool_node *node)
{
gcc_assert (cgraph_function_flags_ready);
if (!node->definition)
@@ -376,7 +376,7 @@ cgraph_variable_initializer_availability (struct varpool_node *node)
}
void
-varpool_analyze_node (struct varpool_node *node)
+varpool_analyze_node (varpool_node *node)
{
tree decl = node->decl;
@@ -401,14 +401,14 @@ varpool_analyze_node (struct varpool_node *node)
/* Assemble thunks and aliases associated to NODE. */
static void
-assemble_aliases (struct varpool_node *node)
+assemble_aliases (varpool_node *node)
{
int i;
struct ipa_ref *ref;
for (i = 0; ipa_ref_list_referring_iterate (&node->ref_list, i, ref); i++)
if (ref->use == IPA_REF_ALIAS)
{
- struct varpool_node *alias = ipa_ref_referring_varpool_node (ref);
+ varpool_node *alias = ipa_ref_referring_varpool_node (ref);
do_assemble_alias (alias->decl,
DECL_ASSEMBLER_NAME (node->decl));
assemble_aliases (alias);
@@ -418,7 +418,7 @@ assemble_aliases (struct varpool_node *node)
/* Output one variable, if necessary. Return whether we output it. */
bool
-varpool_assemble_decl (struct varpool_node *node)
+varpool_assemble_decl (varpool_node *node)
{
tree decl = node->decl;
@@ -465,7 +465,7 @@ varpool_assemble_decl (struct varpool_node *node)
The queue is linked via AUX pointers and terminated by pointer to 1. */
static void
-enqueue_node (struct varpool_node *node, struct varpool_node **first)
+enqueue_node (varpool_node *node, varpool_node **first)
{
if (node->aux)
return;
@@ -482,8 +482,8 @@ enqueue_node (struct varpool_node *node, struct varpool_node **first)
static void
varpool_remove_unreferenced_decls (void)
{
- struct varpool_node *next, *node;
- struct varpool_node *first = (struct varpool_node *)(void *)1;
+ varpool_node *next, *node;
+ varpool_node *first = (varpool_node *)(void *)1;
int i;
struct ipa_ref *ref;
@@ -505,10 +505,10 @@ varpool_remove_unreferenced_decls (void)
fprintf (cgraph_dump_file, " %s", node->asm_name ());
}
}
- while (first != (struct varpool_node *)(void *)1)
+ while (first != (varpool_node *)(void *)1)
{
node = first;
- first = (struct varpool_node *)first->aux;
+ first = (varpool_node *)first->aux;
if (node->same_comdat_group)
{
@@ -553,7 +553,7 @@ varpool_remove_unreferenced_decls (void)
conflicts between read-only and read-only requiring relocations
sections can be resolved. */
void
-varpool_finalize_named_section_flags (struct varpool_node *node)
+varpool_finalize_named_section_flags (varpool_node *node)
{
if (!TREE_ASM_WRITTEN (node->decl)
&& !node->alias
@@ -570,7 +570,7 @@ bool
varpool_output_variables (void)
{
bool changed = false;
- struct varpool_node *node;
+ varpool_node *node;
if (seen_error ())
return false;
@@ -594,7 +594,7 @@ tree
add_new_static_var (tree type)
{
tree new_decl;
- struct varpool_node *new_node;
+ varpool_node *new_node;
new_decl = create_tmp_var_raw (type, NULL);
DECL_NAME (new_decl) = create_tmp_var_name (NULL);
@@ -613,10 +613,10 @@ add_new_static_var (tree type)
/* Attempt to mark ALIAS as an alias to DECL. Return TRUE if successful.
Extra name aliases are output whenever DECL is output. */
-struct varpool_node *
+varpool_node *
varpool_create_variable_alias (tree alias, tree decl)
{
- struct varpool_node *alias_node;
+ varpool_node *alias_node;
gcc_assert (TREE_CODE (decl) == VAR_DECL);
gcc_assert (TREE_CODE (alias) == VAR_DECL);
@@ -632,10 +632,10 @@ varpool_create_variable_alias (tree alias, tree decl)
/* Attempt to mark ALIAS as an alias to DECL. Return TRUE if successful.
Extra name aliases are output whenever DECL is output. */
-struct varpool_node *
+varpool_node *
varpool_extra_name_alias (tree alias, tree decl)
{
- struct varpool_node *alias_node;
+ varpool_node *alias_node;
#ifndef ASM_OUTPUT_DEF
/* If aliases aren't supported by the assembler, fail. */
@@ -659,8 +659,8 @@ varpool_extra_name_alias (tree alias, tree decl)
skipped. */
bool
-varpool_for_node_and_aliases (struct varpool_node *node,
- bool (*callback) (struct varpool_node *, void *),
+varpool_for_node_and_aliases (varpool_node *node,
+ bool (*callback) (varpool_node *, void *),
void *data,
bool include_overwritable)
{
@@ -672,7 +672,7 @@ varpool_for_node_and_aliases (struct varpool_node *node,
for (i = 0; ipa_ref_list_referring_iterate (&node->ref_list, i, ref); i++)
if (ref->use == IPA_REF_ALIAS)
{
- struct varpool_node *alias = ipa_ref_referring_varpool_node (ref);
+ varpool_node *alias = ipa_ref_referring_varpool_node (ref);
if (include_overwritable
|| cgraph_variable_initializer_availability (alias) > AVAIL_OVERWRITABLE)
if (varpool_for_node_and_aliases (alias, callback, data,