diff mbox series

[committed] sh and riscv fixes for move_by_pieces change

Message ID 471831aa-c4f2-7f08-babf-520a8f410168@redhat.com
State New
Headers show
Series [committed] sh and riscv fixes for move_by_pieces change | expand

Commit Message

Jeff Law Nov. 27, 2018, 3:34 p.m. UTC
sh and riscv this time.  Sigh.  Hopefully that's all the ports... These
will also test via bootstraps during the day.


Committed.

Jeff

Comments

Martin Liška Nov. 27, 2018, 4:31 p.m. UTC | #1
On 11/27/18 4:34 PM, Jeff Law wrote:
> 
> sh and riscv this time.  Sigh.  Hopefully that's all the ports... These
> will also test via bootstraps during the day.
> 
> 
> Committed.
> 
> Jeff
> 

Thank you Jeff for the help. I grepped for a usage in a target code,
but apparently wrongly. Sorry.

Martin
diff mbox series

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fe8f6dc6ad7..96215ee5cd7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@ 
 2018-11-27  Jeff Law  <law@redhat.com>
 
+	* config/riscv/riscv (riscv_block_mvoe_straight): Use RETURN_BEGIN
+	in call to move_by_pieces.
+
+	* config/sh/sh-mem.c (expand_block_move): Use RETURN_BEGIN in call
+	to move_by_pieces.
+
 	* config/lm32/lm32.c (lm32_block_move_inline): Use RETURN_BEGIN in
 	call to move_by_pieces.
 
diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c
index 47d0b6e849e..7c1319e36de 100644
--- a/gcc/config/riscv/riscv.c
+++ b/gcc/config/riscv/riscv.c
@@ -2882,7 +2882,7 @@  riscv_block_move_straight (rtx dest, rtx src, HOST_WIDE_INT length)
       src = adjust_address (src, BLKmode, offset);
       dest = adjust_address (dest, BLKmode, offset);
       move_by_pieces (dest, src, length - offset,
-		      MIN (MEM_ALIGN (src), MEM_ALIGN (dest)), 0);
+		      MIN (MEM_ALIGN (src), MEM_ALIGN (dest)), RETURN_BEGIN);
     }
 }
 
diff --git a/gcc/config/sh/sh-mem.cc b/gcc/config/sh/sh-mem.cc
index efa958e7939..113cb8e04cd 100644
--- a/gcc/config/sh/sh-mem.cc
+++ b/gcc/config/sh/sh-mem.cc
@@ -91,7 +91,7 @@  expand_block_move (rtx *operands)
 	move_by_pieces (adjust_address (dest, BLKmode, copied),
 			adjust_automodify_address (src, BLKmode,
 						   src_addr, copied),
-			bytes - copied, align, 0);
+			bytes - copied, align, RETURN_BEGIN);
 
       return true;
     }