summaryrefslogtreecommitdiff
path: root/gcc/bb-reorder.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-22 23:54:29 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-22 23:54:29 +0000
commitd83460737b0badfb4c29d3f36875b35bcd6d6439 (patch)
treebd4b65a487950d3be1edea36602d109f08a019c6 /gcc/bb-reorder.c
parent58c74e1e168e3b1c46c06c4eefefc64e3e17559f (diff)
downloadgcc-d83460737b0badfb4c29d3f36875b35bcd6d6439.tar.gz
* bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176664 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r--gcc/bb-reorder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index fac5b296af2..763cbe51741 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -2212,6 +2212,7 @@ gate_handle_partition_blocks (void)
user defined section attributes. Don't call it if either case
arises. */
return (flag_reorder_blocks_and_partition
+ && optimize
&& !DECL_ONE_ONLY (current_function_decl)
&& !user_defined_section_attribute);
}