(expand_call): Don't call convert_to_mode if we obtained
authorRichard Stallman <rms@gnu.org>
Sun, 25 Oct 1992 22:50:23 +0000 (22:50 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 25 Oct 1992 22:50:23 +0000 (22:50 +0000)
VALUE in the proper mode; VALUE might be a CONST_INT.

From-SVN: r2604

gcc/calls.c

index 4d6c848..0e003cb 100644 (file)
@@ -1425,7 +1425,7 @@ expand_call (exp, target, ignore)
        mode = (GET_CODE (args[i].reg) == EXPR_LIST 
                ? GET_MODE (XEXP (args[i].reg, 0)) : GET_MODE (args[i].reg));
 
-       if (GET_MODE (args[i].value) != mode)
+       if (TYPE_MODE (TREE_TYPE (args[i].tree_value)) != mode)
          args[i].value = convert_to_mode (mode, args[i].value,
                                           args[i].unsignedp);
       }