From: Diego Novillo Date: Fri, 6 Jul 2001 22:39:17 +0000 (+0000) Subject: combine.c (combine_simplify_rtx): Also recompute 'mode' if the call to simplify_binar... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4531c1c787e88e4fa2d90020c0bc305cf244c37d;p=gcc.git combine.c (combine_simplify_rtx): Also recompute 'mode' if the call to simplify_binary_operation returns a new... 2001-07-06 Diego Novillo * combine.c (combine_simplify_rtx): Also recompute 'mode' if the call to simplify_binary_operation returns a new pattern. From-SVN: r43826 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f361306ce03..c92144ed48d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-06 Diego Novillo + + * combine.c (combine_simplify_rtx): Also recompute 'mode' if the + call to simplify_binary_operation returns a new pattern. + 2001-07-06 Roman Lechtchinsky * glimits.h (__SHRT_MAX__): New. diff --git a/gcc/combine.c b/gcc/combine.c index f64feca0832..2e41a2343de 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3702,7 +3702,12 @@ combine_simplify_rtx (x, op0_mode, last, in_dest) } if (temp) - x = temp, code = GET_CODE (temp), op0_mode = VOIDmode; + { + x = temp; + code = GET_CODE (temp); + op0_mode = VOIDmode; + mode = GET_MODE (temp); + } /* First see if we can apply the inverse distributive law. */ if (code == PLUS || code == MINUS