gimple-fold.c (static_object_in_other_unit_p): Rename to...
authorJan Hubicka <jh@suse.cz>
Mon, 4 Oct 2010 20:59:07 +0000 (22:59 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 4 Oct 2010 20:59:07 +0000 (20:59 +0000)
commitb3b9f3d0a808a2e0773e90d70dff2048270cc359
tree1d98e516244d02c9fedbab147a5e449884c9d35c
parentfa37ed29b9a77b698c67548a82484c5fab584b07
gimple-fold.c (static_object_in_other_unit_p): Rename to...

* gimple-fold.c (static_object_in_other_unit_p): Rename to...
(can_refer_decl_in_current_unit_p): ... this one; reverse return
value; handle comdats too.
(canonicalize_constructor_val): Use it; handle function_decls
correctly.
(gimple_fold_obj_type_ref_known_binfo): Likewise.
* gimple.c (get_base_address): Accept all kinds of decls.

From-SVN: r164961
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple.c