This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r218272 - in /trunk/gcc: ChangeLog config/i386/...
- From: hjl at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 02 Dec 2014 14:10:24 -0000
- Subject: r218272 - in /trunk/gcc: ChangeLog config/i386/...
Author: hjl
Date: Tue Dec 2 14:10:23 2014
New Revision: 218272
URL: https://gcc.gnu.org/viewcvs?rev=218272&root=gcc&view=rev
Log:
Stop only if there aren't any usable algorithms
When searching for an usable algorithm with -minline-all-stringops,
decide_alg stops when it sees libcall even if there is a usable
algorithm. It goes into an infinite loop. This patch changes
decide_alg to stop searching only if there aren't any usable algorithms.
Testd on Linux/x86-64.
gcc/
PR target/64108
* config/i386/i386.c (decide_alg): Stop only if there aren't
any usable algorithms.
gcc/testsuite/
PR target/64108
* gcc.target/i386/memset-strategy-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/memset-strategy-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog