(find_reloads): Properly test for output operand when changing
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Jan 1994 01:11:18 +0000 (01:11 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Jan 1994 01:11:18 +0000 (01:11 +0000)
RELOAD_FOR_OUTPUT_ADDRESS to RELOAD_FOR_INPUT_ADDRESS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6420 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/reload.c

index a13dee1..05400b7 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -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
               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++)
                if (reload_opnum[j] == i
                    && reload_when_needed[j] == RELOAD_FOR_OUTPUT_ADDRESS)