From: Richard Stallman Date: Sun, 25 Oct 1992 22:50:23 +0000 (+0000) Subject: (expand_call): Don't call convert_to_mode if we obtained X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1709c75483cbeced3b520f557d921c561da2a6d7;p=gcc.git (expand_call): Don't call convert_to_mode if we obtained VALUE in the proper mode; VALUE might be a CONST_INT. From-SVN: r2604 --- diff --git a/gcc/calls.c b/gcc/calls.c index 4d6c848bb71..0e003cb17c4 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -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); }