Commit e934eef9 by Richard Kenner

(expand_call): Make sure valreg is at least a full word.

From-SVN: r10509
parent ebfc180f
...@@ -2058,6 +2058,13 @@ expand_call (exp, target, ignore) ...@@ -2058,6 +2058,13 @@ expand_call (exp, target, ignore)
preserve_temp_slots (target); preserve_temp_slots (target);
} }
/* This code assumes valreg is at least a full word. If it isn't,
copy it into a new pseudo which is a full word. */
if (GET_MODE (valreg) != BLKmode
&& GET_MODE_SIZE (GET_MODE (valreg)) < UNITS_PER_WORD)
valreg = convert_to_mode (SImode, valreg,
TREE_UNSIGNED (TREE_TYPE (exp)));
/* Structures whose size is not a multiple of a word are aligned /* Structures whose size is not a multiple of a word are aligned
to the least significant byte (to the right). On a BYTES_BIG_ENDIAN to the least significant byte (to the right). On a BYTES_BIG_ENDIAN
machine, this means we must skip the empty high order bytes when machine, this means we must skip the empty high order bytes when
......
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