From 2cf8d1fd53778f585a61c608c097c03ecf7a6142 Mon Sep 17 00:00:00 2001 From: Toma Tabacu Date: Tue, 21 Mar 2017 14:00:19 +0000 Subject: Apply temporary fix for PR rtl-optimization/79150. gcc/ PR rtl-optimization/79150 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the conditional jump, if the jump is the last insn of the loop. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@246320 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/mips/mips.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 81a27f9f051..ff2cd7a15bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-03-21 Toma Tabacu + + PR rtl-optimization/79150 + * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the + conditional jump, if the jump is the last insn of the loop. + 2017-03-21 Bill Schmidt Richard Biener diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 7778207dfc4..d1deb523a1e 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -8098,6 +8098,9 @@ mips_block_move_loop (rtx dest, rtx src, HOST_WIDE_INT length, /* Mop up any left-over bytes. */ if (leftover) mips_block_move_straight (dest, src, leftover); + else + /* Temporary fix for PR79150. */ + emit_insn (gen_nop ()); } /* Expand a movmemsi instruction, which copies LENGTH bytes from -- cgit v1.2.3