This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r159421 - in /trunk/gcc: ChangeLog cgraph.h ipa...
- From: hubicka at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 14 May 2010 23:39:39 -0000
- Subject: r159421 - in /trunk/gcc: ChangeLog cgraph.h ipa...
Author: hubicka
Date: Fri May 14 23:39:39 2010
New Revision: 159421
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159421
Log:
* cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
(varpool_all_refs_explicit_p): New inline function.
* ipa-reference.c: Update comment.
(module_statics_written): Remove.
(get_static_decl): Remove.
(ipa_init): Do not initialize module_statics_written.
(analyze_function): Likewise.
(generate_summary): Likewise; do not compute module_statics_readonly
and do not update variable flags.
(propagate): Call ipa_discover_readonly_nonaddressable_vars.
* ipa.c: Inlucde flags.h
(cgraph_local_node_p): New.
(cgraph_remove_unreachable_nodes): Return early when not optimizing;
promote functions to local.
(ipa_discover_readonly_nonaddressable_vars): New function.
(function_and_variable_visibility): Use cgraph_local_node_p.
* varpool.c (varpool_finalize_decl): Set force_output for
DECL_PRESERVE_P vars.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraph.h
trunk/gcc/ipa-reference.c
trunk/gcc/ipa.c
trunk/gcc/varpool.c