From 61be2a1ce3ab4b79b7238dcd92af3ec63de9dedb Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 24 Mar 2011 15:13:45 +0000 Subject: [PATCH] builtins.c (expand_movstr): Fix endp == 1 adjustment after last commit. gcc/ * builtins.c (expand_movstr): Fix endp == 1 adjustment after last commit. From-SVN: r171397 --- gcc/ChangeLog | 5 +++++ gcc/builtins.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4c00adc8d94..d8331aca79c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-24 Richard Sandiford + + * builtins.c (expand_movstr): Fix endp == 1 adjustment after + last commit. + 2011-03-24 Richard Guenther PR tree-optimization/48271 diff --git a/gcc/builtins.c b/gcc/builtins.c index f2b5130b837..1b93f3c0c9a 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -3655,7 +3655,6 @@ static rtx expand_movstr (tree dest, tree src, rtx target, int endp) { struct expand_operand ops[3]; - rtx end; rtx dest_mem; rtx src_mem; @@ -3683,7 +3682,7 @@ expand_movstr (tree dest, tree src, rtx target, int endp) adjust it. */ if (endp == 1) { - rtx tem = plus_constant (gen_lowpart (GET_MODE (target), end), 1); + rtx tem = plus_constant (gen_lowpart (GET_MODE (target), target), 1); emit_move_insn (target, force_operand (tem, NULL_RTX)); } } -- 2.30.2