Commit 9e6a5703 by John Carr Committed by John Carr

optabs.c: Use gen_rtx_FOO (...) instead of gen_rtx (FOO, ...).

	* optabs.c: Use gen_rtx_FOO (...) instead of gen_rtx (FOO, ...).
	* expr.c: Likewise.
	* explow.c: Likewise.
	* combine.c: Likewise.
	* reload1.c: Likewise.
	* gcse.c: Likewise.

From-SVN: r20701
parent 55a6ba9f
......@@ -6,6 +6,13 @@ Wed Jun 24 16:27:23 1998 John Carr <jfc@mit.edu>
* expmed.c (init_expmed): Initialize all elements of *_cost arrays.
* optabs.c: Use gen_rtx_FOO (...) instead of gen_rtx (FOO, ...).
* expr.c: Likewise.
* explow.c: Likewise.
* combine.c: Likewise.
* reload1.c: Likewise.
* gcse.c: Likewise.
Wed Jun 24 15:13:01 1998 Dave Brolley <brolley@cygnus.com>
* README.gnat: Add patch for new lang_decode_options interface.
......
......@@ -11552,8 +11552,9 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
if (! find_regno_note (tem, REG_UNUSED,
REGNO (XEXP (note, 0))))
REG_NOTES (tem)
= gen_rtx (EXPR_LIST, REG_UNUSED, XEXP (note, 0),
REG_NOTES (tem));
= gen_rtx_EXPR_LIST (REG_UNUSED,
XEXP (note, 0),
REG_NOTES (tem));
}
else
{
......
......@@ -1258,9 +1258,9 @@ allocate_dynamic_stack_space (size, target, known_align)
{
rtx note_target = get_last_insn ();
REG_NOTES (note_target) = gen_rtx (EXPR_LIST, REG_SAVE_AREA,
setjmpless_size,
REG_NOTES (note_target));
REG_NOTES (note_target)
= gen_rtx_EXPR_LIST (REG_SAVE_AREA, setjmpless_size,
REG_NOTES (note_target));
}
#endif /* SETJMP_VIA_SAVE_AREA */
#ifdef STACK_GROWS_DOWNWARD
......
......@@ -2289,7 +2289,7 @@ emit_move_insn_1 (x, y)
{
/* Show the output dies here. */
if (x != y)
emit_insn (gen_rtx (CLOBBER, VOIDmode, x));
emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code)
(gen_realpart (submode, x), gen_realpart (submode, y)));
......@@ -2639,7 +2639,7 @@ emit_push_insn (x, mode, type, size, align, partial, reg, extra,
{
rtx opalign = GEN_INT (align);
enum machine_mode mode;
rtx target = gen_rtx (MEM, BLKmode, temp);
rtx target = gen_rtx_MEM (BLKmode, temp);
for (mode = GET_CLASS_NARROWEST_MODE (MODE_INT);
mode != VOIDmode;
......
......@@ -805,8 +805,8 @@ compute_can_copy ()
#ifdef AVOID_CCMODE_COPIES
can_copy_p[i] = 0;
#else
reg = gen_rtx (REG, (enum machine_mode) i, LAST_VIRTUAL_REGISTER + 1);
insn = emit_insn (gen_rtx (SET, VOIDmode, reg, reg));
reg = gen_rtx_REG ((enum machine_mode) i, LAST_VIRTUAL_REGISTER + 1);
insn = emit_insn (gen_rtx_SET (VOIDmode, reg, reg));
if (recog (PATTERN (insn), insn, NULL_PTR) >= 0)
can_copy_p[i] = 1;
#endif
......@@ -3139,8 +3139,9 @@ handle_avail_expr (insn, expr)
/* Generate the new insn. */
/* ??? If the change fails, we return 0, even though we created
an insn. I think this is ok. */
new_insn = emit_insn_after (gen_rtx (SET, VOIDmode, to,
SET_DEST (PATTERN (insn_computes_expr))),
new_insn
= emit_insn_after (gen_rtx_SET (VOIDmode, to,
SET_DEST (PATTERN (insn_computes_expr))),
insn_computes_expr);
/* Keep block number table up to date. */
set_block_num (new_insn, BLOCK_NUM (insn_computes_expr));
......@@ -4321,7 +4322,7 @@ pre_insert_insn (expr, bb)
int regno = REGNO (reg);
rtx pat;
pat = gen_rtx (SET, VOIDmode, reg, copy_rtx (expr->expr));
pat = gen_rtx_SET (VOIDmode, reg, copy_rtx (expr->expr));
/* If the last insn is a jump, insert EXPR in front [taking care to
handle cc0, etc. properly]. */
......@@ -4443,7 +4444,7 @@ pre_insert_copy_insn (expr, insn)
if (!set)
abort ();
new_insn = emit_insn_after (gen_rtx (SET, VOIDmode, reg, SET_DEST (set)),
new_insn = emit_insn_after (gen_rtx_SET (VOIDmode, reg, SET_DEST (set)),
insn);
/* Keep block number table up to date. */
set_block_num (new_insn, BLOCK_NUM (insn));
......
......@@ -7478,7 +7478,7 @@ gen_reload (out, in, opnum, type)
{
/* Add a REG_EQUIV note so that find_equiv_reg can find it. */
REG_NOTES (insn)
= gen_rtx (EXPR_LIST, REG_EQUIV, in, REG_NOTES (insn));
= gen_rtx_EXPR_LIST (REG_EQUIV, in, REG_NOTES (insn));
return insn;
}
}
......@@ -7487,7 +7487,7 @@ gen_reload (out, in, opnum, type)
gen_reload (out, op1, opnum, type);
insn = emit_insn (gen_add2_insn (out, op0));
REG_NOTES (insn) = gen_rtx (EXPR_LIST, REG_EQUIV, in, REG_NOTES (insn));
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_EQUIV, in, REG_NOTES (insn));
}
#ifdef SECONDARY_MEMORY_NEEDED
......
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