From 4757704f849f509d4d4a956a3897ac35fc75f36a Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 26 Jan 2009 15:03:30 +0000 Subject: [PATCH] re PR tree-optimization/38745 (ICE: statement makes a memory store, but has no VDEFS) 2009-01-26 Richard Guenther PR tree-optimization/38745 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL from special handling. From-SVN: r143676 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-alias.c | 2 ++ 2 files changed, 8 insertions(+) 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)); }