* tree-optimize.c (init_tree_optimization_passes): Fix flags of
commit62eec3b440a3c0f2b1c6b26fc88262837ebf21db
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Jun 2005 15:14:04 +0000 (24 15:14 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Jun 2005 15:14:04 +0000 (24 15:14 +0000)
treecb74c75feb0a3380d0f1a108528cdc35a05f7892
parent55459e6c6f278a09cdac19118b4256c42ce95660
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101295 138bc75d-0d04-0410-961f-82ee72b054a4
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]