From d3652c4b7f0e4ef1d1c5f37c3bedf06c5fa70423 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 15 May 1993 13:59:45 +0000 Subject: [PATCH] (expand_assignment): Always return a result that has the mode of TO. From-SVN: r4468 --- gcc/expr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/expr.c b/gcc/expr.c index 546555c5e7fa..c97e4c74d759 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2197,7 +2197,8 @@ expand_assignment (to, from, want_value, suggest_reg) preserve_temp_slots (result); free_temp_slots (); - return result; + return convert_to_mode (TYPE_MODE (TREE_TYPE (to)), result, + TREE_UNSIGNED (TREE_TYPE (to))); } /* Ordinary treatment. Expand TO to get a REG or MEM rtx. -- 2.43.5