mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 23:30:08 +08:00
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
This commit is contained in:
parent
d1271dedce
commit
59fe8c2c20
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
* profile.c (output_func_start_profiler): Clear flag_inline_functions
|
||||
|
@ -9847,7 +9847,9 @@ expand_increment (exp, post, ignore)
|
||||
}
|
||||
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;
|
||||
|
||||
op0 = change_address (op0, VOIDmode, addr);
|
||||
|
Loading…
Reference in New Issue
Block a user