Commit 2fb00d7f by Kazu Hirata Committed by Kazu Hirata

combine.c (simplify_set): Use gen_rtx_fmt_e instead of gen_rtx.

	gcc/
	* combine.c (simplify_set): Use gen_rtx_fmt_e instead of
	gen_rtx.
	* emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
	instead of gen_rtx.
	* reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
	gen_rtx.
	* config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
	gen_rtx_ASHIFT instead of gen_rtx.
	(udivmodqi4): Likewise.

	ada/
	* ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
	gen_rtx.

	f/
	* com.c (ffecom_member_phase2_): Use gen_rtx_MEM instead of
	gen_rtx.

From-SVN: r77159
parent b0dccb00
2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
* combine.c (simplify_set): Use gen_rtx_fmt_e instead of
gen_rtx.
* emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
instead of gen_rtx.
* reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
gen_rtx.
* config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
gen_rtx_ASHIFT instead of gen_rtx.
(udivmodqi4): Likewise.
2004-02-02 Richard Henderson <rth@redhat.com> 2004-02-02 Richard Henderson <rth@redhat.com>
PR target/13789 PR target/13789
......
2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
* ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
gen_rtx.
2004-02-02 Arnaud Charlet <charlet@gnat.com> 2004-02-02 Arnaud Charlet <charlet@gnat.com>
* Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded. * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
......
...@@ -186,7 +186,7 @@ gigi (Node_Id gnat_root, ...@@ -186,7 +186,7 @@ gigi (Node_Id gnat_root,
/* Enable GNAT stack checking method if needed */ /* Enable GNAT stack checking method if needed */
if (!Stack_Check_Probes_On_Target) if (!Stack_Check_Probes_On_Target)
set_stack_check_libfunc (gen_rtx (SYMBOL_REF, Pmode, "_gnat_stack_check")); set_stack_check_libfunc (gen_rtx_SYMBOL_REF (Pmode, "_gnat_stack_check"));
/* Save the type we made for integer as the type for Standard.Integer. /* Save the type we made for integer as the type for Standard.Integer.
Then make the rest of the standard types. Note that some of these Then make the rest of the standard types. Note that some of these
......
...@@ -5200,7 +5200,7 @@ simplify_set (rtx x) ...@@ -5200,7 +5200,7 @@ simplify_set (rtx x)
&& GET_CODE (SUBREG_REG (src)) == MEM) && GET_CODE (SUBREG_REG (src)) == MEM)
{ {
SUBST (SET_SRC (x), SUBST (SET_SRC (x),
gen_rtx (LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (src))), gen_rtx_fmt_e (LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (src))),
GET_MODE (src), SUBREG_REG (src))); GET_MODE (src), SUBREG_REG (src)));
src = SET_SRC (x); src = SET_SRC (x);
......
...@@ -1322,8 +1322,8 @@ ...@@ -1322,8 +1322,8 @@
;; REG_NOTES (first)); ;; REG_NOTES (first));
;; REG_NOTES (last) = gen_rtx_INSN_LIST (REG_RETVAL, first, ;; REG_NOTES (last) = gen_rtx_INSN_LIST (REG_RETVAL, first,
;; gen_rtx_EXPR_LIST (REG_EQUAL, ;; gen_rtx_EXPR_LIST (REG_EQUAL,
;; gen_rtx(IOR, DImode, moddi, ;; gen_rtx_IOR (DImode, moddi,
;; gen_rtx(ASHIFT, DImode, divdi, GEN_INT(32))), ;; gen_rtx_ASHIFT (DImode, divdi, GEN_INT(32))),
;; REG_NOTES (last))); ;; REG_NOTES (last)));
;; } ;; }
;; ;;
...@@ -1379,8 +1379,8 @@ ...@@ -1379,8 +1379,8 @@
;; REG_NOTES (first)); ;; REG_NOTES (first));
;; REG_NOTES (last) = gen_rtx_INSN_LIST (REG_RETVAL, first, ;; REG_NOTES (last) = gen_rtx_INSN_LIST (REG_RETVAL, first,
;; gen_rtx_EXPR_LIST (REG_EQUAL, ;; gen_rtx_EXPR_LIST (REG_EQUAL,
;; gen_rtx(IOR, DImode, moddi, ;; gen_rtx_IOR (DImode, moddi,
;; gen_rtx(ASHIFT, DImode, divdi, GEN_INT(32))), ;; gen_rtx_ASHIFT (DImode, divdi, GEN_INT(32))),
;; REG_NOTES (last))); ;; REG_NOTES (last)));
;; } ;; }
;; ;;
......
...@@ -5355,8 +5355,8 @@ init_emit_once (int line_numbers) ...@@ -5355,8 +5355,8 @@ init_emit_once (int line_numbers)
This must be done at runtime because the register number field This must be done at runtime because the register number field
is in a union and some compilers can't initialize unions. */ is in a union and some compilers can't initialize unions. */
pc_rtx = gen_rtx (PC, VOIDmode); pc_rtx = gen_rtx_PC (VOIDmode);
cc0_rtx = gen_rtx (CC0, VOIDmode); cc0_rtx = gen_rtx_CC0 (VOIDmode);
stack_pointer_rtx = gen_raw_REG (Pmode, STACK_POINTER_REGNUM); stack_pointer_rtx = gen_raw_REG (Pmode, STACK_POINTER_REGNUM);
frame_pointer_rtx = gen_raw_REG (Pmode, FRAME_POINTER_REGNUM); frame_pointer_rtx = gen_raw_REG (Pmode, FRAME_POINTER_REGNUM);
if (hard_frame_pointer_rtx == 0) if (hard_frame_pointer_rtx == 0)
......
2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
* com.c (ffecom_member_phase2_): Use gen_rtx_MEM instead of
gen_rtx.
2004-01-30 Kelley Cook <kcook@gcc.gnu.org> 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in (doc/g77.dvi): Use $(abs_docdir). * Make-lang.in (doc/g77.dvi): Use $(abs_docdir).
......
/* com.c -- Implementation File (module.c template V1.0) /* com.c -- Implementation File (module.c template V1.0)
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by James Craig Burley. Contributed by James Craig Burley.
...@@ -6906,7 +6906,7 @@ ffecom_member_phase2_ (ffestorag mst, ffestorag st) ...@@ -6906,7 +6906,7 @@ ffecom_member_phase2_ (ffestorag mst, ffestorag st)
TREE_USED (t) = 1; TREE_USED (t) = 1;
SET_DECL_RTL (t, SET_DECL_RTL (t,
gen_rtx (MEM, TYPE_MODE (type), gen_rtx_MEM (TYPE_MODE (type),
plus_constant (XEXP (DECL_RTL (mt), 0), plus_constant (XEXP (DECL_RTL (mt), 0),
ffestorag_modulo (mst) ffestorag_modulo (mst)
+ ffestorag_offset (st) + ffestorag_offset (st)
......
...@@ -3477,7 +3477,7 @@ init_elim_table (void) ...@@ -3477,7 +3477,7 @@ init_elim_table (void)
#endif #endif
/* Count the number of eliminable registers and build the FROM and TO /* Count the number of eliminable registers and build the FROM and TO
REG rtx's. Note that code in gen_rtx will cause, e.g., REG rtx's. Note that code in gen_rtx_REG will cause, e.g.,
gen_rtx_REG (Pmode, STACK_POINTER_REGNUM) to equal stack_pointer_rtx. gen_rtx_REG (Pmode, STACK_POINTER_REGNUM) to equal stack_pointer_rtx.
We depend on this. */ We depend on this. */
for (ep = reg_eliminate; ep < &reg_eliminate[NUM_ELIMINABLE_REGS]; ep++) for (ep = reg_eliminate; ep < &reg_eliminate[NUM_ELIMINABLE_REGS]; ep++)
...@@ -3932,7 +3932,8 @@ reload_as_needed (int live_known) ...@@ -3932,7 +3932,8 @@ reload_as_needed (int live_known)
if (n == 1) if (n == 1)
{ {
n = validate_replace_rtx (reload_reg, n = validate_replace_rtx (reload_reg,
gen_rtx (code, mode, gen_rtx_fmt_e (code,
mode,
reload_reg), reload_reg),
p); p);
...@@ -3948,7 +3949,8 @@ reload_as_needed (int live_known) ...@@ -3948,7 +3949,8 @@ reload_as_needed (int live_known)
undo the replacement. */ undo the replacement. */
if (!n) if (!n)
{ {
validate_replace_rtx (gen_rtx (code, mode, validate_replace_rtx (gen_rtx_fmt_e (code,
mode,
reload_reg), reload_reg),
reload_reg, p); reload_reg, p);
break; break;
......
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