re PR rtl-optimization/48331 (gcc.c-torture/execute/built-in-setjmp.c FAILs with...
authorVladimir Makarov <vmakarov@redhat.com>
Tue, 29 Mar 2011 20:51:14 +0000 (20:51 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Tue, 29 Mar 2011 20:51:14 +0000 (20:51 +0000)
2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/48331
PR rtl-optimization/48334
* ira-color.c (color_allocnos): Call setup_profitable_hard_regs
for any used algorithm.

From-SVN: r171699

gcc/ChangeLog
gcc/ira-color.c

index d43f586f0b099e86ed0e69ba275cac1e9885e4cd..ad483d3cdb1020d30c745c6d63dcdf2fda33d5e2 100644 (file)
@@ -1,3 +1,10 @@
+2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
+
+       PR rtl-optimization/48331
+       PR rtl-optimization/48334
+       * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
+       for any used algorithm.
+
 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
 
        * ira-conflicts.c (build_object_conflicts): Add unused attribute
index f7ac59475f7da90911d587f83ebbd7fc4aca030d..4e2dd2ca10997a261d8bc62392ae6131cc1a4f4c 100644 (file)
@@ -2590,6 +2590,7 @@ color_allocnos (void)
   bitmap_iterator bi;
   ira_allocno_t a;
 
+  setup_profitable_hard_regs ();
   if (flag_ira_algorithm == IRA_ALGORITHM_PRIORITY)
     {
       n = 0;
@@ -2642,7 +2643,6 @@ color_allocnos (void)
     }
   else
     {
-      setup_profitable_hard_regs ();
       form_object_hard_regs_nodes_forest ();
       if (internal_flag_ira_verbose > 2 && ira_dump_file != NULL)
        print_hard_regs_forest (ira_dump_file);