diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-08-30 13:17:40 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-08-30 13:17:40 +0000 |
commit | 9645d43461599b60a2b27b337f1a56c5a88ff6ba (patch) | |
tree | 0cef3e86f4bbfb2644d6c5e98403f2de571d9395 /gcc | |
parent | 070f36cf077d9cfbfe737712f61a9ff5a3c49820 (diff) | |
download | gcc-9645d43461599b60a2b27b337f1a56c5a88ff6ba.zip gcc-9645d43461599b60a2b27b337f1a56c5a88ff6ba.tar.gz gcc-9645d43461599b60a2b27b337f1a56c5a88ff6ba.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/bb-reorder.c | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5bcfa4a..b89303d 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 <christian.bruel@st.com> * coverage.c (coverage_init): Check flag_branch_probabilities instead of diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 11423fe..d0ed8ea 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); |