re PR bootstrap/49354 (bootstrap failure)
authorHans-Peter Nilsson <hp@axis.com>
Fri, 10 Jun 2011 01:04:34 +0000 (01:04 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Fri, 10 Jun 2011 01:04:34 +0000 (01:04 +0000)
PR bootstrap/49354
* ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
to last assignment.

From-SVN: r174878

gcc/ChangeLog
gcc/ira-costs.c

index d0429e150918d5785a0c152463bca7388b399b5c..1fb815879e3ebb804e7a6c1af532a9c9cd43d273 100644 (file)
@@ -1,3 +1,9 @@
+2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR bootstrap/49354
+       * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
+       to last assignment.
+
 2011-06-09  Jan Hubicka  <jh@suse.cz>
 
        * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
index a22bb1571cc69946e359e84d67cfcac2bd3c2f70..1dbb5a7346025570df42a059059dd937ace31aa5 100644 (file)
@@ -300,7 +300,7 @@ setup_regno_cost_classes_by_mode (int regno, enum machine_mode mode)
          *slot = classes_ptr;
        }
       else
-       classes_ptr = *slot;
+       classes_ptr = (cost_classes_t) *slot;
       cost_classes_mode_cache[mode] = (cost_classes_t) *slot;
     }
   regno_cost_classes[regno] = classes_ptr;