* bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
authorRichard Henderson <rth@redhat.com>
Fri, 22 Jul 2011 23:54:29 +0000 (16:54 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 22 Jul 2011 23:54:29 +0000 (16:54 -0700)
From-SVN: r176664

gcc/ChangeLog
gcc/bb-reorder.c

index 905dc1c54edc6abd7a86193fe8001ae7d8380b72..8cf9313d8ff04af3ee15f2ffb90fa2c0ab3f0dba 100644 (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...
index fac5b296af23a5254fea2ff401d4b88ea60aecd7..763cbe5174156f8a4044b8a78af4f60efa5ddb55 100644 (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);
 }