Commit 02ee7bea by Jan Hubicka Committed by Jan Hubicka

ipa.c (function_and_variable_visibility): Variables marked as used should not be localized.

	* ipa.c (function_and_variable_visibility): Variables marked as used should
	not be localized.

From-SVN: r162215
parent 99fecd47
2010-07-15 Jan Hubicka <jh@suse.cz>
* ipa.c (function_and_variable_visibility): Variables marked as used should
not be localized.
2010-07-15 Jan Hubicka <jh@suse.cz>
* cgraph.c: Include lto-streamer.h
(change_decl_assembler_name): Work when assembler name hash is at place.
(cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage, be
......
......@@ -786,6 +786,7 @@ function_and_variable_visibility (bool whole_program)
/* We can get prevailing decision in other object file.
In this case we do not sed used_from_object_file. */
|| !vnode->finalized))
|| DECL_PRESERVE_P (vnode->decl)
|| vnode->used_from_object_file
|| pointer_set_contains (aliased_vnodes, vnode)
|| lookup_attribute ("externally_visible",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment