diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 505c99a394bf..9899755c452c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-01-26 Richard Guenther + + PR tree-optimization/38745 + * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL + from special handling. + 2009-01-26 Richard Guenther PR tree-optimization/38745 diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 9ed242d03a8d..3c76fcd2db4c 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -2494,6 +2494,8 @@ update_alias_info_1 (gimple stmt, struct alias_info *ai) { tree var = get_base_address (lhs); if (DECL_P (var) + /* We are not going to mess with RESULT_DECL anyway. */ + && TREE_CODE (var) != RESULT_DECL && is_gimple_reg_type (TREE_TYPE (var))) bitmap_set_bit (gimple_addressable_vars (cfun), DECL_UID (var)); }