re PR middle-end/71874 (memmove works wrong)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Jul 2016 17:30:05 +0000 (19:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Jul 2016 17:30:05 +0000 (19:30 +0200)
commit4fda19ef2b56cd04d557e44e742984e8318b5c3c
treebab7fdb2faf8ab1a7fe16d23af96298fde377e0b
parent13da0507f3edc3732100780d2c54a2402b7ea124
re PR middle-end/71874 (memmove works wrong)

PR middle-end/71874
* gimple-fold.c (fold_builtin_memory_op): Use
get_addr_base_and_unit_offset instead of get_ref_base_and_extent.

* g++.dg/torture/pr71874.C: New test.

From-SVN: r238484
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr71874.C [new file with mode: 0644]