aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-01-16 08:21:16 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-01-16 08:21:16 -0500
commit43e046cbc1dbcc553365d1e807016a135b97008f (patch)
tree211d950fb2c344c41966f03cb8474f267444466f /gcc
parent3e53ea486098443845e08949c446679f3a59362e (diff)
downloadgcc-43e046cbc1dbcc553365d1e807016a135b97008f.zip
gcc-43e046cbc1dbcc553365d1e807016a135b97008f.tar.gz
gcc-43e046cbc1dbcc553365d1e807016a135b97008f.tar.bz2
(emit_move_insn_1): Don't emit clobber when moving by parts and source
equals destination. From-SVN: r11018
Diffstat (limited to 'gcc')
-rw-r--r--gcc/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 60336c9..f2ed65c 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -2204,7 +2204,8 @@ emit_move_insn_1 (x, y)
#endif
/* Show the output dies here. */
- emit_insn (gen_rtx (CLOBBER, VOIDmode, x));
+ if (x != y)
+ emit_insn (gen_rtx (CLOBBER, VOIDmode, x));
for (i = 0;
i < (GET_MODE_SIZE (mode) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD;