]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/46916 (gcc.dg/torture/stackalign/non-local-goto-[1,2].c ICEs compile...
authorIain Sandoe <iains@gcc.gnu.org>
Mon, 20 Dec 2010 10:14:36 +0000 (10:14 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Mon, 20 Dec 2010 10:14:36 +0000 (10:14 +0000)
PR middle-end/46916
* opts.c (finish_options): Enable -freorder-functions
when -freorder-blocks-and-partition is active.

Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r168084

gcc/ChangeLog
gcc/opts.c

index 17cb2eadf7dfad000c2da48d6588ea833669582d..d7f1211dd9c49009e1a7f64356592f4a432dbdbb 100644 (file)
@@ -1,3 +1,10 @@
+2010-12-20  Iain Sandoe  <iains@gcc.gnu.org>
+           Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/46916
+       * opts.c (finish_options): Enable -freorder-functions
+       when -freorder-blocks-and-partition is active.
+       
 2010-12-20  Iain Sandoe  <iains@gcc.gnu.org>
 
        PR c++/46904
index cc4181ea03f74d5335176f30b2e4ae2fd51ce0b6..12f79f94da167de737cd61d3226bbfd1ea3c195f 100644 (file)
@@ -755,6 +755,10 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
       opts->x_flag_reorder_blocks = 1;
     }
 
+  if (opts->x_flag_reorder_blocks_and_partition
+      && !opts_set->x_flag_reorder_functions)
+    opts->x_flag_reorder_functions = 1;
+
   /* Pipelining of outer loops is only possible when general pipelining
      capabilities are requested.  */
   if (!opts->x_flag_sel_sched_pipelining)