From: Richard Stallman Date: Sat, 15 May 1993 13:59:45 +0000 (+0000) Subject: (expand_assignment): Always return a result that has the mode of TO. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3652c4b7f0e4ef1d1c5f37c3bedf06c5fa70423;p=gcc.git (expand_assignment): Always return a result that has the mode of TO. From-SVN: r4468 --- diff --git a/gcc/expr.c b/gcc/expr.c index 546555c5e7f..c97e4c74d75 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.