This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.3 patch] flow.c: Backport fix for execute/20020227-1.c failure.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 16 Jun 2003 22:42:39 -0400 (EDT)
- Subject: [3.3 patch] flow.c: Backport fix for execute/20020227-1.c failure.
Hi,
Attached is a patch to backport
http://gcc.gnu.org/ml/gcc-patches/2003-06/msg00283.html
to 3.3 branch. The patch was approved in
http://gcc.gnu.org/ml/gcc-patches/2003-06/msg00287.html
Tested on h8300 port. OK to apply?
Kazu Hirata
2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
* flow.c (initialize_uninitialized_subregs): Use
emit_move_insn instead of emitting a hardcoded move.
Index: flow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.541.2.2
diff -u -r1.541.2.2 flow.c
--- flow.c 20 Apr 2003 02:04:54 -0000 1.541.2.2
+++ flow.c 16 Jun 2003 20:52:57 -0000
@@ -1471,8 +1471,11 @@
for_each_rtx (&i, find_regno_partial, ¶m);
if (param.retval != NULL_RTX)
{
- insn = gen_move_insn (param.retval,
- CONST0_RTX (GET_MODE (param.retval)));
+ start_sequence ();
+ emit_move_insn (param.retval,
+ CONST0_RTX (GET_MODE (param.retval)));
+ insn = get_insns ();
+ end_sequence ();
insert_insn_on_edge (insn, e);
did_something = 1;
}