builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1) into memcpy (x, y...
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Sep 2004 08:19:39 +0000 (10:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Sep 2004 08:19:39 +0000 (10:19 +0200)
commit9a520f407392f0a984e7b74aa819e9f6eb3b0b90
tree77eadc5f7abf659773934ba55f1eee0b30a67d3d
parentb1d16eff57d17fbab7430d7098ed6ea6144d45f7
builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1) into memcpy (x, y, 1) if memcpy can be expanded inline.

* builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
into memcpy (x, y, 1) if memcpy can be expanded inline.

* gcc.c-torture/execute/builtins/memmove.c (main_test): Formatting.
* gcc.c-torture/execute/builtins/memmove-2.c: New test.
* gcc.c-torture/execute/builtins/memmove-2-lib.c: New.

From-SVN: r87539
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtins/memmove-2-lib.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/builtins/memmove-2.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/builtins/memmove.c