]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-object-size.c (compute_object_sizes): Fix dumping of folded statement.
authorRichard Guenther <rguenther@suse.de>
Tue, 27 Sep 2011 10:06:40 +0000 (10:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 27 Sep 2011 10:06:40 +0000 (10:06 +0000)
2011-09-27  Richard Guenther  <rguenther@suse.de>

* tree-object-size.c (compute_object_sizes): Fix dumping of
folded statement.

From-SVN: r179259

gcc/ChangeLog
gcc/tree-object-size.c

index 57d5bfddb53b02d0924c1ea52162bb89b90aebe3..f346ed752dd0c2f6422d67d2ce2674ab027aa533 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-27  Richard Guenther  <rguenther@suse.de>
+
+       * tree-object-size.c (compute_object_sizes): Fix dumping of
+       folded statement.
+
 2011-09-27  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/50363
index b1767584da8a3aefa3e6fe0ef3a2c84b4b5abeeb..851bba914fab1814c2073d360988bd8271fe836e 100644 (file)
@@ -1250,13 +1250,10 @@ compute_object_sizes (void)
          if (!update_call_from_tree (&i, result))
            gcc_unreachable ();
 
-          /* NOTE: In the pre-tuples code, we called update_stmt here.  This is
-             now handled by gsi_replace, called from update_call_from_tree.  */
-
          if (dump_file && (dump_flags & TDF_DETAILS))
            {
              fprintf (dump_file, "to\n  ");
-             print_gimple_stmt (dump_file, call, 0, dump_flags);
+             print_gimple_stmt (dump_file, gsi_stmt (i), 0, dump_flags);
              fprintf (dump_file, "\n");
            }
        }