OSDN Git Service

2010-06-17 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jun 2010 13:10:45 +0000 (13:10 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jun 2010 13:10:45 +0000 (13:10 +0000)
* tree-inline.c (declare_return_variable): Remove bogus code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160910 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-inline.c

index 2f93800..ca6224e 100644 (file)
@@ -1,5 +1,9 @@
 2010-06-17  Richard Guenther  <rguenther@suse.de>
 
+       * tree-inline.c (declare_return_variable): Remove bogus code.
+
+2010-06-17  Richard Guenther  <rguenther@suse.de>
+
        * gimplify.c (gimplify_bind_expr): Always promote complex
        and vector variables to registers if possible.
 
index 2ee34c8..b241a21 100644 (file)
@@ -2701,25 +2701,6 @@ declare_return_variable (copy_body_data *id, tree return_slot, tree modify_dest)
             via return slot optimization are not believed to have address
             taken by alias analysis.  */
          gcc_assert (TREE_CODE (return_slot) != SSA_NAME);
-         if (gimple_in_ssa_p (cfun))
-           {
-             HOST_WIDE_INT bitsize;
-             HOST_WIDE_INT bitpos;
-             tree offset;
-             enum machine_mode mode;
-             int unsignedp;
-             int volatilep;
-             tree base;
-             base = get_inner_reference (return_slot, &bitsize, &bitpos,
-                                         &offset,
-                                         &mode, &unsignedp, &volatilep,
-                                         false);
-             if (TREE_CODE (base) == INDIRECT_REF)
-               base = TREE_OPERAND (base, 0);
-             if (TREE_CODE (base) == SSA_NAME)
-               base = SSA_NAME_VAR (base);
-             mark_sym_for_renaming (base);
-           }
          var = return_slot_addr;
        }
       else