From: Richard Sandiford Date: Mon, 12 Jan 2004 09:20:24 +0000 (+0000) Subject: combine.c (combine_simplify_rtx): Don't pass VOIDmode to simplify_unary_operation... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0657872082996e355a09edb07d17ec000dfaac4;p=gcc.git combine.c (combine_simplify_rtx): Don't pass VOIDmode to simplify_unary_operation if the operand has a known mode. * combine.c (combine_simplify_rtx): Don't pass VOIDmode to simplify_unary_operation if the operand has a known mode. From-SVN: r75709 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd94d58cf98..1f23cbdf868 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-01-12 Richard Sandiford + + * combine.c (combine_simplify_rtx): Don't pass VOIDmode to + simplify_unary_operation if the operand has a known mode. + 2004-01-12 Hartmut Penner * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New diff --git a/gcc/combine.c b/gcc/combine.c index 2c92d247aa8..db139fe9bbb 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3690,6 +3690,8 @@ combine_simplify_rtx (rtx x, enum machine_mode op0_mode, int last, switch (GET_RTX_CLASS (code)) { case '1': + if (op0_mode == VOIDmode) + op0_mode = GET_MODE (XEXP (x, 0)); temp = simplify_unary_operation (code, mode, XEXP (x, 0), op0_mode); break; case '<':