Commit c1da1f33 by Jim Wilson

(store_expr): Don't check the TYPE_MODE of an ERROR_MARK.

From-SVN: r7122
parent 704f4dca
...@@ -2641,6 +2641,7 @@ store_expr (exp, target, want_value) ...@@ -2641,6 +2641,7 @@ store_expr (exp, target, want_value)
example, in case it is a CONST_DOUBLE and we want only a word-sized example, in case it is a CONST_DOUBLE and we want only a word-sized
value. */ value. */
if (CONSTANT_P (temp) && GET_MODE (temp) == VOIDmode if (CONSTANT_P (temp) && GET_MODE (temp) == VOIDmode
&& TREE_CODE (exp) != ERROR_MARK
&& GET_MODE (target) != TYPE_MODE (TREE_TYPE (exp))) && GET_MODE (target) != TYPE_MODE (TREE_TYPE (exp)))
temp = convert_modes (GET_MODE (target), TYPE_MODE (TREE_TYPE (exp)), temp = convert_modes (GET_MODE (target), TYPE_MODE (TREE_TYPE (exp)),
temp, TREE_UNSIGNED (TREE_TYPE (exp))); temp, TREE_UNSIGNED (TREE_TYPE (exp)));
......
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