Commit ce3c0b53 by Jeff Law

expr.c (expand_expr): Allow assignments from TImode PARM_DECLs and VAR_DECLs.

8
        * expr.c (expand_expr): Allow assignments from TImode PARM_DECLs
        and VAR_DECLs.

From-SVN: r21784
parent 27fa9e4b
......@@ -5255,7 +5255,10 @@ expand_expr (exp, target, tmode, modifier)
}
#ifdef MAX_INTEGER_COMPUTATION_MODE
if (target && TREE_CODE (exp) != INTEGER_CST)
if (target
&& TREE_CODE (exp) != INTEGER_CST
&& TREE_CODE (exp) != PARM_DECL
&& TREE_CODE (exp) != VAR_DECL)
{
enum machine_mode mode = GET_MODE (target);
......@@ -5265,6 +5268,8 @@ expand_expr (exp, target, tmode, modifier)
}
if (TREE_CODE (exp) != INTEGER_CST
&& TREE_CODE (exp) != PARM_DECL
&& TREE_CODE (exp) != VAR_DECL
&& GET_MODE_CLASS (tmode) == MODE_INT
&& tmode > MAX_INTEGER_COMPUTATION_MODE)
fatal ("unsupported wide integer operation");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment