Commit 59fe8c2c by J"orn Rennecke Committed by Joern Rennecke

expr.c (expand_increment): When enqueing a postincrement for a MEM...

	* expr.c (expand_increment): When enqueing a postincrement for a MEM,
	use copy_to_reg if address is not a general_operand.

From-SVN: r16247
parent d1271ded
Fri Oct 31 00:34:55 1996 J"orn Rennecke <amylaar@cygnus.co.uk>
* expr.c (expand_increment): When enqueing a postincrement for a MEM,
use copy_to_reg if address is not a general_operand.
Fri Oct 31 00:16:55 1997 J"orn Rennecke <amylaar@cygnus.co.uk> Fri Oct 31 00:16:55 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* profile.c (output_func_start_profiler): Clear flag_inline_functions * profile.c (output_func_start_profiler): Clear flag_inline_functions
......
...@@ -9847,7 +9847,9 @@ expand_increment (exp, post, ignore) ...@@ -9847,7 +9847,9 @@ expand_increment (exp, post, ignore)
} }
if (icode != (int) CODE_FOR_nothing && GET_CODE (op0) == MEM) if (icode != (int) CODE_FOR_nothing && GET_CODE (op0) == MEM)
{ {
rtx addr = force_reg (Pmode, XEXP (op0, 0)); rtx addr = (general_operand (XEXP (op0, 0), mode)
? force_reg (Pmode, XEXP (op0, 0))
: copy_to_reg (XEXP (op0, 0)));
rtx temp, result; rtx temp, result;
op0 = change_address (op0, VOIDmode, addr); op0 = change_address (op0, VOIDmode, addr);
......
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