Commit 7940acc4 by Jim Wilson Committed by Jim Wilson

Fix irix6 -g -O3 -funroll-all-loops bootstrap failure.

	* loop.c (load_mems): Fix JUMP_LABEL field after for_each_rtx call.

From-SVN: r22232
parent f3b8847b
Fri Sep 4 10:37:07 1998 Jim Wilson <wilson@cygnus.com>
* loop.c (load_mems): Fix JUMP_LABEL field after for_each_rtx call.
Fri Sep 4 02:01:05 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
* config/sparc/sparc.c (output_double_int): In all V9 symbolic
......
......@@ -8826,7 +8826,18 @@ load_mems (scan_start, end, loop_top, start)
rr.r2 = label;
for (p = start; p != end; p = NEXT_INSN (p))
for_each_rtx (&p, replace_label, &rr);
{
for_each_rtx (&p, replace_label, &rr);
/* If this is a JUMP_INSN, then we also need to fix the JUMP_LABEL
field. This is not handled by for_each_rtx because it doesn't
handle unprinted ('0') fields. We need to update JUMP_LABEL
because the immediately following unroll pass will use it.
replace_label would not work anyways, because that only handles
LABEL_REFs. */
if (GET_CODE (p) == JUMP_INSN && JUMP_LABEL (p) == end_label)
JUMP_LABEL (p) = label;
}
}
}
......
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