aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-06-03 23:17:27 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-06-03 23:17:27 +0000
commita7a7d7ace8fe14e73afd208e0e527b1e9bc2415d (patch)
tree339545077f5d4ecb4c1ca538140b2d36664a193c
parent61274a14e5416e53211e537a99217d704ce73a60 (diff)
downloadgcc-a7a7d7ace8fe14e73afd208e0e527b1e9bc2415d.zip
gcc-a7a7d7ace8fe14e73afd208e0e527b1e9bc2415d.tar.gz
gcc-a7a7d7ace8fe14e73afd208e0e527b1e9bc2415d.tar.bz2
flow.c (initialize_uninitialized_subregs): Use emit_move_insn instead of emitting a hardcoded move.
* flow.c (initialize_uninitialized_subregs): Use emit_move_insn instead of emitting a hardcoded move. From-SVN: r67409
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/flow.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dfc37dd..e84b39f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
+
+ * flow.c (initialize_uninitialized_subregs): Use
+ emit_move_insn instead of emitting a hardcoded move.
+
2003-06-03 Richard Henderson <rth@redhat.com>
* optabs.c (expand_abs_nojump): Split out from ...
diff --git a/gcc/flow.c b/gcc/flow.c
index f2f4320..e234b1d 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -1484,8 +1484,11 @@ initialize_uninitialized_subregs ()
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;
}