From 2831adb5623797825234bf006b9f2fc8f027c36d Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 29 Nov 2018 18:17:39 +0100 Subject: [PATCH] Fix thinko in transition to memop_ret type (PR middle-end/88246). 2018-11-29 Martin Liska PR middle-end/88246 * builtins.c (expand_movstr): Fix thinko introduced when switching to the new enum. From-SVN: r266631 --- gcc/ChangeLog | 6 ++++++ gcc/builtins.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49b78305a50..02c2403baf8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-11-29 Martin Liska + + PR middle-end/88246 + * builtins.c (expand_movstr): Fix thinko introduced + when switching to the new enum. + 2018-11-29 qing zhao * cif-code.def (EXTERN_LIVE_ONLY_STATIC): New CIF code. diff --git a/gcc/builtins.c b/gcc/builtins.c index dcac49d8be1..537228cf3be 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -3931,7 +3931,7 @@ expand_movstr (tree dest, tree src, rtx target, memop_ret retmode) dest_mem = get_memory_rtx (dest, NULL); src_mem = get_memory_rtx (src, NULL); - if (retmode != RETURN_BEGIN) + if (retmode == RETURN_BEGIN) { target = force_reg (Pmode, XEXP (dest_mem, 0)); dest_mem = replace_equiv_address (dest_mem, target); -- 2.30.2