Commit 77e6b0eb by John Carr Committed by Jim Wilson

Patch from John Carr to fix sparc v9 failure.

	* emit-rtl.c (operand_subword_force): If a register can not be
	accessed by words, copy it to a pseudo register.

From-SVN: r19267
parent 27f4cfdb
Fri Apr 17 14:30:37 1998 John Carr <jfc@mit.edu>
* emit-rtl.c (operand_subword_force): If a register can not be
accessed by words, copy it to a pseudo register.
Fri Apr 17 14:30:37 1998 Jim Wilson <wilson@cygnus.com>
* rs6000/vxppc.h (CPP_SPEC): Add support for mrelocatable*.
......
......@@ -1380,7 +1380,14 @@ operand_subword_force (op, i, mode)
return result;
if (mode != BLKmode && mode != VOIDmode)
op = force_reg (mode, op);
{
/* If this is a register which can not be accessed by words, copy it
to a pseudo register. */
if (GET_CODE (op) == REG)
op = copy_to_reg (op);
else
op = force_reg (mode, op);
}
result = operand_subword (op, i, 1, mode);
if (result == 0)
......
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