From 4531c1c787e88e4fa2d90020c0bc305cf244c37d Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Fri, 6 Jul 2001 22:39:17 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/combine.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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 -- 2.30.2