OSDN Git Service

PR c++/55877
[pf3gnuchains/gcc-fork.git] / gcc / ira-color.c
index 6a6a330..5c98ef9 100644 (file)
@@ -34,7 +34,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "basic-block.h"
 #include "expr.h"
 #include "diagnostic-core.h"
-#include "toplev.h"
 #include "reload.h"
 #include "params.h"
 #include "df.h"
@@ -293,7 +292,8 @@ update_copy_costs (ira_allocno_t allocno, bool decr_p)
            gcc_unreachable ();
 
          cover_class = ALLOCNO_COVER_CLASS (another_allocno);
-         if (! ira_reg_classes_intersect_p[rclass][cover_class]
+         if (! TEST_HARD_REG_BIT (reg_class_contents[cover_class],
+                                  hard_regno)
              || ALLOCNO_ASSIGNED_P (another_allocno))
            continue;