re PR middle-end/81657 (FAIL: gcc.dg/20050503-1.c scan-assembler-not call)
authorMartin Liska <mliska@suse.cz>
Fri, 13 Apr 2018 08:35:32 +0000 (10:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 13 Apr 2018 08:35:32 +0000 (10:35 +0200)
commitfdd332545cacd845162103bf9855c4605be73584
tree2c2fff0f0c8d64c99dc10974991256116f113a2f
parent6888a172d3e9a19921783a31fd8bce5bde8a9c31
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
gcc/ChangeLog
gcc/builtins.c
gcc/expr.c
gcc/expr.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/string-opt-1.c