* bb-reorder.c (gate_handle_partition_blocks): Honor optimize.

From-SVN: r176664
This commit is contained in:
Richard Henderson 2011-07-22 16:54:29 -07:00 committed by Richard Henderson
parent 5f93b30abd
commit 295331a419
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-07-22 Richard Henderson <rth@redhat.com>
* bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
2011-07-22 Richard Henderson <rth@redhat.com>
* jump.c (maybe_propagate_label_ref): Split out of...

View File

@ -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);
}