This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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, &param);
 	      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;
 		}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]