]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/38745 (ICE: statement makes a memory store, but has no VDEFS)
authorRichard Guenther <rguenther@suse.de>
Mon, 26 Jan 2009 15:03:30 +0000 (15:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 26 Jan 2009 15:03:30 +0000 (15:03 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-alias.c

index 505c99a394bf19e5aa9fbb29b863f9959903fd6c..9899755c452cadc244c8099e8ce39a349d075333 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2009-01-26  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/38745
index 9ed242d03a8d793a2f016e4fbc1ac4410b4ba08f..3c76fcd2db4ce1e5470a0358288e2611e81afd3d 100644 (file)
@@ -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));
        }