OSDN Git Service

2009-01-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2009 15:03:30 +0000 (15:03 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2009 15:03:30 +0000 (15:03 +0000)
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

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

index 505c99a..9899755 100644 (file)
@@ -1,6 +1,12 @@
 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
        * tree-ssa.c (execute_update_addresses_taken): Do not include
        variables that cannot possibly be a register in not_reg_needs.
        Do not clear TREE_ADDRESSABLE on vars that may not become
index 9ed242d..3c76fcd 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));
        }