+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
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;
+ }
}
}