aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-06-19 11:08:39 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2007-06-19 11:08:39 +0200
commitfda2b8e358dbd6c086db9229f30adb1011afca84 (patch)
tree2e16cade2a94e7f051a304fe5afa9b7925bf3d45 /gcc/tree-ssa-structalias.c
parentdbdfc53e33561f3c1e82964167dd22141fcf0e7d (diff)
downloadgcc-fda2b8e358dbd6c086db9229f30adb1011afca84.zip
gcc-fda2b8e358dbd6c086db9229f30adb1011afca84.tar.gz
gcc-fda2b8e358dbd6c086db9229f30adb1011afca84.tar.bz2
re PR tree-optimization/32353 (Miscompilation with RESULT_DECL)
PR tree-optimization/32353 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL. * g++.dg/opt/nrv13.C: New test. From-SVN: r125841
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index f1abf37..2b69728 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -4342,7 +4342,8 @@ set_uids_in_ptset (tree ptr, bitmap into, bitmap from, bool is_derefed,
bitmap_set_bit (into, DECL_UID (sv->var));
}
else if (TREE_CODE (vi->decl) == VAR_DECL
- || TREE_CODE (vi->decl) == PARM_DECL)
+ || TREE_CODE (vi->decl) == PARM_DECL
+ || TREE_CODE (vi->decl) == RESULT_DECL)
{
if (var_can_have_subvars (vi->decl)
&& get_subvars_for_var (vi->decl))