Commit 2d55b7e8 by Richard Kenner

(find_reloads): Properly test for output operand when changing

RELOAD_FOR_OUTPUT_ADDRESS to RELOAD_FOR_INPUT_ADDRESS.

From-SVN: r6420
parent b65c1b5b
/* Search an insn for pseudo regs that must be in hard regs and are not. /* Search an insn for pseudo regs that must be in hard regs and are not.
Copyright (C) 1987, 1988, 1989, 1992, 1993 Free Software Foundation, Inc. Copyright (C) 1987, 88, 89, 92, 93, 1994 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -3384,7 +3384,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -3384,7 +3384,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
now we are treating part of the operand as an input, so now we are treating part of the operand as an input, so
we must change these to RELOAD_FOR_INPUT_ADDRESS. */ we must change these to RELOAD_FOR_INPUT_ADDRESS. */
if (operand_type[i] == RELOAD_FOR_OUTPUT) if (modified[i] == RELOAD_WRITE)
for (j = 0; j < n_reloads; j++) for (j = 0; j < n_reloads; j++)
if (reload_opnum[j] == i if (reload_opnum[j] == i
&& reload_when_needed[j] == RELOAD_FOR_OUTPUT_ADDRESS) && reload_when_needed[j] == RELOAD_FOR_OUTPUT_ADDRESS)
......
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