Fix thinko in transition to memop_ret type (PR middle-end/88246).
authorMartin Liska <mliska@suse.cz>
Thu, 29 Nov 2018 17:17:39 +0000 (18:17 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 29 Nov 2018 17:17:39 +0000 (17:17 +0000)
2018-11-29  Martin Liska  <mliska@suse.cz>

PR middle-end/88246
* builtins.c (expand_movstr): Fix thinko introduced
when switching to the new enum.

From-SVN: r266631

gcc/ChangeLog
gcc/builtins.c

index 49b78305a50f86de1ed65456c0b9e01a14462482..02c2403baf8e21db42af550f20d99bb8b295b541 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-29  Martin Liska  <mliska@suse.cz>
+
+       PR middle-end/88246
+       * builtins.c (expand_movstr): Fix thinko introduced
+       when switching to the new enum.
+
 2018-11-29  qing zhao  <qing.zhao@oracle.com>
 
        * cif-code.def (EXTERN_LIVE_ONLY_STATIC): New CIF code.
index dcac49d8be1327128039b714160e39d5021158f9..537228cf3bed0c58b5f21ae43eeb82c1adea6f16 100644 (file)
@@ -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);