From: Richard Sandiford Date: Thu, 6 Sep 2007 08:45:16 +0000 (+0000) Subject: re PR bootstrap/33306 (Bootstrap failure on alpha: ICE in convert_move, at expr.c... X-Git-Tag: releases/gcc-4.3.0~2830 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47de45c6fc7adcf626af5499cb39b0ca43b870c3;p=thirdparty%2Fgcc.git re PR bootstrap/33306 (Bootstrap failure on alpha: ICE in convert_move, at expr.c:369) gcc/ PR middle-end/33306 * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode. From-SVN: r128179 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c908108d80d5..55694f0573c1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-09-06 Richard Sandiford + + PR middle-end/33306 + * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode. + 2007-09-06 Basile Starynkevitch * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for diff --git a/gcc/optabs.c b/gcc/optabs.c index 5ed810176e13..6a78fbc1e979 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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)) {