aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2005-06-24 17:14:04 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2005-06-24 15:14:04 +0000
commitce91e74c187986865c3de8fbd871242183afa93d (patch)
treecb74c75feb0a3380d0f1a108528cdc35a05f7892 /gcc/cgraph.h
parent62765fb14a52c42422b31938deb5893ebe13e735 (diff)
downloadgcc-ce91e74c187986865c3de8fbd871242183afa93d.zip
gcc-ce91e74c187986865c3de8fbd871242183afa93d.tar.gz
gcc-ce91e74c187986865c3de8fbd871242183afa93d.tar.bz2
tree-optimize.c (init_tree_optimization_passes): Fix flags of all_passes and all_ipa_passes.
* tree-optimize.c (init_tree_optimization_passes): Fix flags of all_passes and all_ipa_passes. * c-common.c: Include cgraph.h (handle_externally_visible_attribute): New function. (c_common_att): Add "externally_visible" attribute. * cgraph.c (decide_is_variable_needed): Obey externally visible flag. (cgraph_varpool_finalize_decl): Avoid redundant checking. * cgraph.h (struct cgraph_node): New flag externally_visible. (decide_is_function_needed): Obey externally visible flag. (cgraph_finalize_function): Avoid redundant checks. (cgraph_function_and_variable_visibility): Bring symbols local when asked for. * common.opt (fwhole-program): New flag. * doc/invoke.texi (-fwhole-program): Document. From-SVN: r101295
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 9406e09..9b7306b 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -159,6 +159,8 @@ struct cgraph_node GTY((chain_next ("%h.next"), chain_prev ("%h.previous")))
bool analyzed;
/* 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;
};