+2012-09-19 Dehao Chen <dehao@google.com>
+
+ * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR.
+ * config/spu/spu.c (emit_nop_for_insn): Likewise.
+ (pad_bb): Likewise.
+ (spu_emit_branch_hint): Likewise.
+ (insert_hbrp_for_ilb_runout): Likewise.
+ * config/mep/mep.c (mep_make_bundle): Likewise.
+ (mep_bundle_insns): Likewise.
+ * config/sh/sh.c (gen_block_redirect): Likewise.
+ * config/c6x/c6x.c (gen_one_bundle): Likewise.
+ * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise.
+ * config/picochip/picochip.c (picochip_reorg): Likewise.
+ * config/arm/arm.c (require_pic_register): Likewise.
+ * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise.
+ * config/bfin/bfin.c (gen_one_bundle): Likewise.
+
2012-09-19 Mark Kettenis <kettenis@openbsd.org>
* config.gcc (hppa*-*-openbsd*): New target.
for (insn = seq; insn; insn = NEXT_INSN (insn))
if (INSN_P (insn))
- INSN_LOCATOR (insn) = prologue_locator;
+ INSN_LOCATION (insn) = prologue_location;
/* We can be called during expansion of PHI nodes, where
we can't yet emit instructions directly in the final
}
/* Avoid line number information being printed inside one bundle. */
- if (INSN_LOCATOR (slot[1])
- && INSN_LOCATOR (slot[1]) != INSN_LOCATOR (slot[0]))
- INSN_LOCATOR (slot[1]) = INSN_LOCATOR (slot[0]);
- if (INSN_LOCATOR (slot[2])
- && INSN_LOCATOR (slot[2]) != INSN_LOCATOR (slot[0]))
- INSN_LOCATOR (slot[2]) = INSN_LOCATOR (slot[0]);
+ if (INSN_LOCATION (slot[1])
+ && INSN_LOCATION (slot[1]) != INSN_LOCATION (slot[0]))
+ INSN_LOCATION (slot[1]) = INSN_LOCATION (slot[0]);
+ if (INSN_LOCATION (slot[2])
+ && INSN_LOCATION (slot[2]) != INSN_LOCATION (slot[0]))
+ INSN_LOCATION (slot[2]) = INSN_LOCATION (slot[0]);
/* Terminate them with "|| " instead of ";" in the output. */
PUT_MODE (slot[0], SImode);
bundle = gen_rtx_SEQUENCE (VOIDmode, gen_rtvec_v (n_filled, slot));
bundle = make_insn_raw (bundle);
BLOCK_FOR_INSN (bundle) = BLOCK_FOR_INSN (slot[0]);
- INSN_LOCATOR (bundle) = INSN_LOCATOR (slot[0]);
+ INSN_LOCATION (bundle) = INSN_LOCATION (slot[0]);
PREV_INSN (bundle) = PREV_INSN (slot[real_first]);
t = NULL_RTX;
NEXT_INSN (t) = insn;
t = insn;
if (i > 0)
- INSN_LOCATOR (slot[i]) = INSN_LOCATOR (bundle);
+ INSN_LOCATION (slot[i]) = INSN_LOCATION (bundle);
}
NEXT_INSN (bundle) = NEXT_INSN (PREV_INSN (bundle));
/* Derive a location for the bundle. Individual instructions cannot
have their own location because there can be no assembler labels
between CORE and COP. */
- INSN_LOCATOR (insn) = INSN_LOCATOR (INSN_LOCATOR (core) ? core : cop);
- INSN_LOCATOR (core) = 0;
- INSN_LOCATOR (cop) = 0;
+ INSN_LOCATION (insn) = INSN_LOCATION (INSN_LOCATION (core) ? core : cop);
+ INSN_LOCATION (core) = 0;
+ INSN_LOCATION (cop) = 0;
return insn;
}
whenever the current line changes, set the location info
for INSN to match FIRST. */
- INSN_LOCATOR (insn) = INSN_LOCATOR (first);
+ INSN_LOCATION (insn) = INSN_LOCATION (first);
note = PREV_INSN (insn);
while (note && note != first)
insn = gen_load_const_gp (cfun->machine->mips16_gp_pseudo_rtx);
insn = emit_insn_after (insn, scan);
- INSN_LOCATOR (insn) = 0;
+ INSN_LOCATION (insn) = 0;
pop_topmost_sequence ();
}
if (GET_MODE (insn) == TImode)
{
vliw_start = insn;
- vliw_insn_location = INSN_LOCATOR (insn);
+ vliw_insn_location = INSN_LOCATION (insn);
}
if (JUMP_P (insn) || CALL_P(insn))
{
- vliw_insn_location = INSN_LOCATOR (insn);
+ vliw_insn_location = INSN_LOCATION (insn);
for (insn1 = vliw_start; insn1 != insn ; insn1 = next_real_insn (insn1))
- INSN_LOCATOR (insn1) = vliw_insn_location;
+ INSN_LOCATION (insn1) = vliw_insn_location;
}
/* Tag subsequent instructions with the same location. */
- INSN_LOCATOR (insn) = vliw_insn_location;
+ INSN_LOCATION (insn) = vliw_insn_location;
}
}
{
const char *temp;
int insn_code_number = recog_memoized (insn);
- location_t location = locator_location (INSN_LOCATOR (insn));
+ location_t location = INSN_LOCATION (insn);
/* Punt on insns we cannot recognize. */
if (insn_code_number < 0)
prev = prev_nonnote_insn (prev);
if (prev)
jump = emit_jump_insn_after_setloc (gen_jump (label), insn,
- INSN_LOCATOR (prev));
+ INSN_LOCATION (prev));
else
jump = emit_jump_insn_after_noloc (gen_jump (label), insn);
barrier = emit_barrier_after (jump);
NOTE_INSN_BLOCK_END notes between the indirect_jump_scratch and
the jump. */
- INSN_LOCATOR (insn) = INSN_LOCATOR (jump);
+ INSN_LOCATION (insn) = INSN_LOCATION (jump);
INSN_CODE (insn) = CODE_FOR_indirect_jump_scratch;
return insn;
}
else
new_insn = emit_insn_after (gen_lnop (), insn);
recog_memoized (new_insn);
- INSN_LOCATOR (new_insn) = INSN_LOCATOR (insn);
+ INSN_LOCATION (new_insn) = INSN_LOCATION (insn);
}
/* Insert nops in basic blocks to meet dual issue alignment
prev_insn = emit_insn_before (gen_lnop (), insn);
PUT_MODE (prev_insn, GET_MODE (insn));
PUT_MODE (insn, TImode);
- INSN_LOCATOR (prev_insn) = INSN_LOCATOR (insn);
+ INSN_LOCATION (prev_insn) = INSN_LOCATION (insn);
length += 4;
}
}
hint = emit_insn_before (gen_hbr (branch_label, target), before);
recog_memoized (hint);
- INSN_LOCATOR (hint) = INSN_LOCATOR (branch);
+ INSN_LOCATION (hint) = INSN_LOCATION (branch);
HINTED_P (branch) = 1;
if (GET_CODE (target) == LABEL_REF)
which could make it too far for the branch offest to fit */
insn = emit_insn_before (gen_blockage (), hint);
recog_memoized (insn);
- INSN_LOCATOR (insn) = INSN_LOCATOR (hint);
+ INSN_LOCATION (insn) = INSN_LOCATION (hint);
}
else if (distance <= 8 * 4)
{
insn =
emit_insn_after (gen_nopn_nv (gen_rtx_REG (SImode, 127)), hint);
recog_memoized (insn);
- INSN_LOCATOR (insn) = INSN_LOCATOR (hint);
+ INSN_LOCATION (insn) = INSN_LOCATION (hint);
}
/* Make sure any nops inserted aren't scheduled before the hint. */
insn = emit_insn_after (gen_blockage (), hint);
recog_memoized (insn);
- INSN_LOCATOR (insn) = INSN_LOCATOR (hint);
+ INSN_LOCATION (insn) = INSN_LOCATION (hint);
/* Make sure any nops inserted aren't scheduled after the call. */
if (CALL_P (branch) && distance < 8 * 4)
{
insn = emit_insn_before (gen_blockage (), branch);
recog_memoized (insn);
- INSN_LOCATOR (insn) = INSN_LOCATOR (branch);
+ INSN_LOCATION (insn) = INSN_LOCATION (branch);
}
}
}
insn =
emit_insn_before (gen_iprefetch (GEN_INT (1)), before_4);
recog_memoized (insn);
- INSN_LOCATOR (insn) = INSN_LOCATOR (before_4);
+ INSN_LOCATION (insn) = INSN_LOCATION (before_4);
INSN_ADDRESSES_NEW (insn,
INSN_ADDRESSES (INSN_UID (before_4)));
PUT_MODE (insn, GET_MODE (before_4));
{
insn = emit_insn_before (gen_lnop (), before_4);
recog_memoized (insn);
- INSN_LOCATOR (insn) = INSN_LOCATOR (before_4);
+ INSN_LOCATION (insn) = INSN_LOCATION (before_4);
INSN_ADDRESSES_NEW (insn,
INSN_ADDRESSES (INSN_UID (before_4)));
PUT_MODE (insn, TImode);
insn =
emit_insn_before (gen_iprefetch (GEN_INT (2)), before_16);
recog_memoized (insn);
- INSN_LOCATOR (insn) = INSN_LOCATOR (before_16);
+ INSN_LOCATION (insn) = INSN_LOCATION (before_16);
INSN_ADDRESSES_NEW (insn,
INSN_ADDRESSES (INSN_UID (before_16)));
PUT_MODE (insn, GET_MODE (before_16));
{
insn = emit_insn_before (gen_lnop (), before_16);
recog_memoized (insn);
- INSN_LOCATOR (insn) = INSN_LOCATOR (before_16);
+ INSN_LOCATION (insn) = INSN_LOCATION (before_16);
INSN_ADDRESSES_NEW (insn,
INSN_ADDRESSES (INSN_UID
(before_16)));