(expand_assignment): Always return a result that has the mode of TO.
authorRichard Stallman <rms@gnu.org>
Sat, 15 May 1993 13:59:45 +0000 (13:59 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 15 May 1993 13:59:45 +0000 (13:59 +0000)
From-SVN: r4468

gcc/expr.c

index 546555c5e7fa518d084d4b3367de59a5960b9948..c97e4c74d759508cbe1250417f83fad08e7c493a 100644 (file)
@@ -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.