From: Richard Guenther Date: Tue, 27 Sep 2011 10:06:40 +0000 (+0000) Subject: tree-object-size.c (compute_object_sizes): Fix dumping of folded statement. X-Git-Tag: releases/gcc-4.7.0~3522 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=862a84f5cfb3dfda8a55ad84a44f710a6f0e205e;p=thirdparty%2Fgcc.git tree-object-size.c (compute_object_sizes): Fix dumping of folded statement. 2011-09-27 Richard Guenther * tree-object-size.c (compute_object_sizes): Fix dumping of folded statement. From-SVN: r179259 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 57d5bfddb53b..f346ed752dd0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-09-27 Richard Guenther + + * tree-object-size.c (compute_object_sizes): Fix dumping of + folded statement. + 2011-09-27 Richard Guenther PR tree-optimization/50363 diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c index b1767584da8a..851bba914fab 100644 --- a/gcc/tree-object-size.c +++ b/gcc/tree-object-size.c @@ -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"); } }