aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-12-27 09:51:14 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-12-27 08:51:14 +0000
commit42bdb8f24940aa932e73feda2750e0e80c018441 (patch)
tree38af505644fd86939b4e0d4e5b8703c68753932a /gcc/builtins.c
parent44787584dea62b5368235f3d9d38431fd902fb40 (diff)
downloadgcc-42bdb8f24940aa932e73feda2750e0e80c018441.zip
gcc-42bdb8f24940aa932e73feda2750e0e80c018441.tar.gz
gcc-42bdb8f24940aa932e73feda2750e0e80c018441.tar.bz2
Comparison with an enum should mention enum value.
2018-12-27 Martin Liska <mliska@suse.cz> * builtins.c (expand_movstr): Compare with RETURN_BEGIN. * expr.c (move_by_pieces): Likewise. (store_by_pieces): Likewise. (store_expr): Fix GNU coding style. From-SVN: r267430
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index b56577e..0d66dd7 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -3939,7 +3939,8 @@ expand_movstr (tree dest, tree src, rtx target, memop_ret retmode)
dest_mem = replace_equiv_address (dest_mem, target);
}
- create_output_operand (&ops[0], retmode ? target : NULL_RTX, Pmode);
+ create_output_operand (&ops[0],
+ retmode != RETURN_BEGIN ? target : NULL_RTX, Pmode);
create_fixed_operand (&ops[1], dest_mem);
create_fixed_operand (&ops[2], src_mem);
if (!maybe_expand_insn (targetm.code_for_movstr, 3, ops))