summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-26 15:03:30 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-26 15:03:30 +0000
commit234294b20d4fb742da5c1f7737dd3b37427e7f27 (patch)
treec3ca070b40b63a12ef09a571c550bf8873586da6 /gcc/tree-ssa-alias.c
parent1fdf9a6c12ff5e5a1feaf7111901021a66ad40e7 (diff)
downloadgcc-234294b20d4fb742da5c1f7737dd3b37427e7f27.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143676 138bc75d-0d04-0410-961f-82ee72b054a4
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 9ed242d03a8..3c76fcd2db4 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));
}