From: Bernd Schmidt Date: Tue, 30 Aug 2011 13:17:40 +0000 (+0000) Subject: bb-reorder.c (insert_section_boundary_note): Only do it if we reordered the blocks... X-Git-Tag: releases/gcc-4.7.0~4122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9645d43461599b60a2b27b337f1a56c5a88ff6ba;p=thirdparty%2Fgcc.git bb-reorder.c (insert_section_boundary_note): Only do it if we reordered the blocks; i.e. * bb-reorder.c (insert_section_boundary_note): Only do it if we reordered the blocks; i.e. not if !optimize_function_for_speed_p. From-SVN: r178298 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5bcfa4aff3d1..b89303d4e503 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -11,6 +11,9 @@ * config/i386/i386.c (get_pc_thunk_name): Change prefix to "__x86.get_pc_thunk". + * bb-reorder.c (insert_section_boundary_note): Only do it if + we reordered the blocks; i.e. not if !optimize_function_for_speed_p. + 2011-08-30 Christian Bruel * coverage.c (coverage_init): Check flag_branch_probabilities instead of diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 11423fed29a0..d0ed8ea7bd36 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1965,8 +1965,11 @@ insert_section_boundary_note (void) rtx new_note; int first_partition = 0; - if (flag_reorder_blocks_and_partition) - FOR_EACH_BB (bb) + if (!flag_reorder_blocks_and_partition + || !optimize_function_for_speed_p (cfun)) + return; + + FOR_EACH_BB (bb) { if (!first_partition) first_partition = BB_PARTITION (bb);