]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/33306 (Bootstrap failure on alpha: ICE in convert_move, at expr.c...
authorRichard Sandiford <richard@codesourcery.com>
Thu, 6 Sep 2007 08:45:16 +0000 (08:45 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 6 Sep 2007 08:45:16 +0000 (08:45 +0000)
gcc/
PR middle-end/33306
* optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.

From-SVN: r128179

gcc/ChangeLog
gcc/optabs.c

index c908108d80d528fe46b59d4d885862c848600c2f..55694f0573c10104b0e94b657aef872e56e9128b 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-06  Richard Sandiford  <richard@codesourcery.com>
+
+       PR middle-end/33306
+       * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
+
 2007-09-06  Basile Starynkevitch  <basile@starynkevitch.net>
 
        * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for 
index 5ed810176e13eb08f9762721826351ae3e567498..6a78fbc1e979fe13fe4bc5e3e0eb446b1ec9ec79 100644 (file)
@@ -1359,7 +1359,8 @@ static rtx
 avoid_expensive_constant (enum machine_mode mode, optab binoptab,
                          rtx x, bool unsignedp)
 {
-  if (optimize
+  if (mode != VOIDmode
+      && optimize
       && CONSTANT_P (x)
       && rtx_cost (x, binoptab->code) > COSTS_N_INSNS (1))
     {