aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/expr.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9be4a6f..73c45b3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
+
+ * expr.c (emit_block_move_hints): Slightly cleaner fix to
+ can_move_by_pieces issue.
+
2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
PR target/87243
diff --git a/gcc/expr.c b/gcc/expr.c
index c421054..2ee2906 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -1624,9 +1624,8 @@ emit_block_move_hints (rtx x, rtx y, rtx size, enum block_op_methods method,
set_mem_size (y, const_size);
}
- bool pieces_ok = false;
- if (CONST_INT_P (size))
- pieces_ok = can_move_by_pieces (INTVAL (size), align);
+ bool pieces_ok = CONST_INT_P (size)
+ && can_move_by_pieces (INTVAL (size), align);
bool pattern_ok = false;
if (!pieces_ok || might_overlap)