summaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-12 19:39:07 +0000
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-12 19:39:07 +0000
commit5da8f84e423391fb02da694495dc52af50445b73 (patch)
treea0893deaa7b8a3e50ceefb1c5dfed30cbcf8dcee /gcc/loop.c
parent29a0da07a6b5a4b54bc3a407a123413e80ee042d (diff)
downloadgcc-5da8f84e423391fb02da694495dc52af50445b73.tar.gz
* loop.c (note_set_pseudo_multiple_uses): Correct.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36375 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 7d172e9147a..0ab16d62145 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -3069,8 +3069,7 @@ note_addr_stored (x, y, data)
/* X is a value modified by an INSN that references a biv inside a loop
exit test (ie, X is somehow related to the value of the biv). If X
is a pseudo that is used more than once, then the biv is (effectively)
- used more than once. DATA is really an `int *', and is set if the
- biv is used more than once. */
+ used more than once. DATA is a pointer to a loop_regs structure. */
static void
note_set_pseudo_multiple_uses (x, y, data)
@@ -3097,7 +3096,7 @@ note_set_pseudo_multiple_uses (x, y, data)
if (REGNO (x) >= max_reg_before_loop
|| ! VARRAY_RTX (regs->single_usage, REGNO (x))
|| VARRAY_RTX (regs->single_usage, REGNO (x)) == const0_rtx)
- *((int *) data) = 1;
+ regs->multiple_uses = 1;
}
/* Return nonzero if the rtx X is invariant over the current loop.