aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2005-06-02 12:59:00 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2005-06-02 10:59:00 +0000
commite7d6beb0f868d4feeefea469278b4e07ec3fee8f (patch)
tree4f4dc9e478b4edd68765ff38a1348129dc516dae /gcc/cgraph.h
parent75c702541afe8c4bb21341be284d02c401782622 (diff)
downloadgcc-e7d6beb0f868d4feeefea469278b4e07ec3fee8f.zip
gcc-e7d6beb0f868d4feeefea469278b4e07ec3fee8f.tar.gz
gcc-e7d6beb0f868d4feeefea469278b4e07ec3fee8f.tar.bz2
cgraph.c (dump_cgraph_node): Print new flags.
* cgraph.c (dump_cgraph_node): Print new flags. (dump_cgraph_varpool_node): Likewise. (decide_variable_is_needed): Initialize externally_visible flag. * cgraph.h (cgraph_local_info): Add externally_visible flag. (cgraph_varpool_node): Likewise. (cgraph_function_flags_ready): Declare. * cgraph.c (cgraph_mark_local_functions): Rename to ... (cgraph_function_and_variable_visibility) ... this one; handle externally_visible flags. (decide_is_function_needed): Set externally_visible flag. (cgraph_finalize_function): Deal properly with early cleanups. (cgraph_optimize): Update call of cgraph_function_and_variable_visibility. From-SVN: r100491
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index a10fcc6..96e382a 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -36,6 +36,9 @@ struct cgraph_local_info GTY(())
and its address is never taken. */
bool local;
+ /* Set when function is visible by other units. */
+ bool externally_visible;
+
/* Set once it has been finalized so we consider it to be output. */
bool finalized;
@@ -177,6 +180,8 @@ struct cgraph_varpool_node GTY(())
bool finalized;
/* Set when function is scheduled to be assembled. */
bool output;
+ /* Set when function is visible by other units. */
+ bool externally_visible;
/* Set for aliases once they got through assemble_alias. */
bool alias;
};
@@ -185,6 +190,7 @@ extern GTY(()) struct cgraph_node *cgraph_nodes;
extern GTY(()) int cgraph_n_nodes;
extern GTY(()) int cgraph_max_uid;
extern bool cgraph_global_info_ready;
+extern bool cgraph_function_flags_ready;
extern GTY(()) struct cgraph_node *cgraph_nodes_queue;
extern GTY(()) struct cgraph_varpool_node *cgraph_varpool_first_unanalyzed_node;