re PR rtl-optimization/48331 (gcc.c-torture/execute/built-in-setjmp.c FAILs with -O -fira-algorithm=priority -fPIC)

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
This commit is contained in:
Vladimir Makarov 2011-03-29 20:51:14 +00:00 committed by Vladimir Makarov
parent ea61eea7fe
commit 76763a6d3f
2 changed files with 8 additions and 1 deletions

View 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

View 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);