]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
tree-optimize.c (init_tree_optimization_passes): Fix flags of all_passes and all_ipa_...
authorJan Hubicka <jh@suse.cz>
Fri, 24 Jun 2005 15:14:04 +0000 (17:14 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 24 Jun 2005 15:14:04 +0000 (15:14 +0000)
commitce91e74c187986865c3de8fbd871242183afa93d
treecb74c75feb0a3380d0f1a108528cdc35a05f7892
parent62765fb14a52c42422b31938deb5893ebe13e735
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
gcc/ChangeLog
gcc/c-common.c
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphunit.c
gcc/common.opt
gcc/doc/extend.texi
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/wholeprogram-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/wholeprogram-2.c [new file with mode: 0644]