diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2014-12-02 14:10:23 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2014-12-02 06:10:23 -0800 |
commit | 0f884e6709dac066e558c6a63c50a5149ab408f3 (patch) | |
tree | 8519c84ca3cfd4e5b3c4e7acd089cd6330aa87ec /libcpp/line-map.c | |
parent | fb98f8869b20ecc3ee1f6cb473ab6d7b3c34ece7 (diff) | |
download | gcc-0f884e6709dac066e558c6a63c50a5149ab408f3.zip gcc-0f884e6709dac066e558c6a63c50a5149ab408f3.tar.gz gcc-0f884e6709dac066e558c6a63c50a5149ab408f3.tar.bz2 |
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.
From-SVN: r218272
Diffstat (limited to 'libcpp/line-map.c')
0 files changed, 0 insertions, 0 deletions