* gimple-fold.c (static_object_in_other_unit_p): Rename to...
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Oct 2010 20:59:07 +0000 (20:59 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Oct 2010 20:59:07 +0000 (20:59 +0000)
commit551732eb35e9a27b781ce4abba6b3fb93afd96c1
tree1d98e516244d02c9fedbab147a5e449884c9d35c
parent13a54dd947d4ca9283957c82108891aa874bc397
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164961 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple.c