diff options
author | Martin Liska <mliska@suse.cz> | 2018-04-13 10:35:32 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-04-13 10:35:32 +0200 |
commit | fdd332545cacd845162103bf9855c4605be73584 (patch) | |
tree | 2c2fff0f0c8d64c99dc10974991256116f113a2f /gcc/expr.h | |
parent | 6888a172d3e9a19921783a31fd8bce5bde8a9c31 (diff) | |
download | gcc-fdd332545cacd845162103bf9855c4605be73584.zip gcc-fdd332545cacd845162103bf9855c4605be73584.tar.gz gcc-fdd332545cacd845162103bf9855c4605be73584.tar.bz2 |
re PR middle-end/81657 (FAIL: gcc.dg/20050503-1.c scan-assembler-not call)
PR middle-end/81657
* expr.h (enum block_op_methods): Add BLOCK_OP_NO_LIBCALL_RET.
* expr.c (emit_block_move_hints): Handle BLOCK_OP_NO_LIBCALL_RET.
* builtins.c (expand_builtin_memory_copy_args): Use
BLOCK_OP_NO_LIBCALL_RET method for mempcpy with non-ignored target,
handle dest_addr == pc_rtx.
* gcc.dg/string-opt-1.c: Remove bogus comment. Expect a mempcpy
call.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r259366
Diffstat (limited to 'gcc/expr.h')
-rw-r--r-- | gcc/expr.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -100,7 +100,11 @@ enum block_op_methods BLOCK_OP_NO_LIBCALL, BLOCK_OP_CALL_PARM, /* Like BLOCK_OP_NORMAL, but the libcall can be tail call optimized. */ - BLOCK_OP_TAILCALL + BLOCK_OP_TAILCALL, + /* Like BLOCK_OP_NO_LIBCALL, but instead of emitting a libcall return + pc_rtx to indicate nothing has been emitted and let the caller handle + it. */ + BLOCK_OP_NO_LIBCALL_RET }; typedef rtx (*by_pieces_constfn) (void *, HOST_WIDE_INT, scalar_int_mode); |