summaryrefslogtreecommitdiffstats
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-29 15:37:29 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-29 15:37:29 +0000
commitf1c94b5580c2833b4e24cd14de9bcc246b209269 (patch)
tree689501abab0bcf8ec5a3d3c534f71588bc8a79c1 /gcc/cgraph.h
parent1b062bfff76a24826c36d95770c8f2cb4dd76f39 (diff)
downloadppe42-gcc-f1c94b5580c2833b4e24cd14de9bcc246b209269.tar.gz
ppe42-gcc-f1c94b5580c2833b4e24cd14de9bcc246b209269.zip
PR middle-end/20622
* cgraph.h (struct cgraph_varpool_node): Add alias field. * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call assemble_variable on aliases. * varasm.c (assemble_alias): Set node->alias. * toplev.c (wrapup_global_declarations): Don't call rest_of_decl_compilation on aliases again. * gcc.dg/alias-7.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 2a1c1b3b949..46f9f0a660d 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -153,6 +153,8 @@ struct cgraph_varpool_node GTY(())
bool finalized;
/* Set when function is scheduled to be assembled. */
bool output;
+ /* Set for aliases once they got through assemble_alias. */
+ bool alias;
};
extern GTY(()) struct cgraph_node *cgraph_nodes;
OpenPOWER on IntegriCloud