re PR target/59003 (profiledbootstrap miscompiles gcc during stagefeedback --with...
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Jan 2014 19:12:06 +0000 (20:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Jan 2014 19:12:06 +0000 (20:12 +0100)
commitf8ea7cb08dc13e3cb78bb3b4017c556c9838263b
tree887f120f5543a7885ae30a5f8914a67efcca122c
parent800d8bd54791c2f94de54e15ab3ae0d07d969787
re PR target/59003 (profiledbootstrap miscompiles gcc during stagefeedback --with-tune=amdfam10)

PR target/59003
* config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
smaller than size, perform several stores or loads and stores
at dst + count - size to store or copy all of size bytes, rather
than just last modesize bytes.

* gcc.dg/tree-prof/pr59003.c: New test.

From-SVN: r206896
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/pr59003.c [new file with mode: 0644]