This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] h8300.c: Don't generate insns by hand. (part 2)
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 17 Feb 2004 14:57:21 -0500 (EST)
- Subject: [patch] h8300.c: Don't generate insns by hand. (part 2)
Hi,
Attached is a patch to have h8300_expand_prologue() call
emit_move_insn() instead of generating insns by hand.
The purpose of this patch is to make the MODE_CC conversion easier.
Tested on h8300-elf. Committed.
Kazu Hirata
2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (h8300_expand_prologue): Don't generate
insns by hand.
Index: h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.274
diff -u -r1.274 h8300.c
--- h8300.c 10 Feb 2004 23:58:57 -0000 1.274
+++ h8300.c 16 Feb 2004 04:10:21 -0000
@@ -505,8 +505,7 @@
{
/* Push fp. */
push (HARD_FRAME_POINTER_REGNUM);
- emit_insn (gen_rtx_SET (Pmode, hard_frame_pointer_rtx,
- stack_pointer_rtx));
+ emit_move_insn (hard_frame_pointer_rtx, stack_pointer_rtx);
}
/* Push the rest of the registers in ascending order. */