aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-01-26 15:03:30 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-01-26 15:03:30 +0000
commit4757704f849f509d4d4a956a3897ac35fc75f36a (patch)
treec3ca070b40b63a12ef09a571c550bf8873586da6 /gcc/tree-ssa-alias.c
parente3e6cff41e9d63815a0396e02ee17d0a1261fccd (diff)
downloadgcc-4757704f849f509d4d4a956a3897ac35fc75f36a.zip
gcc-4757704f849f509d4d4a956a3897ac35fc75f36a.tar.gz
gcc-4757704f849f509d4d4a956a3897ac35fc75f36a.tar.bz2
re PR tree-optimization/38745 (ICE: statement makes a memory store, but has no VDEFS)
2009-01-26 Richard Guenther <rguenther@suse.de> PR tree-optimization/38745 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL from special handling. From-SVN: r143676
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 9ed242d..3c76fcd 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));
}