https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70062
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 30 12:39:20 2016 New Revision: 234560 URL: https://gcc.gnu.org/viewcvs?rev=234560&root=gcc&view=rev Log: Backported from mainline 2016-03-04 Jakub Jelinek <ja...@redhat.com> PR target/70062 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert 2016-02-22 changes, instead don't recurse if RECUR is already true. Don't change *dynamic_check if RECUR. Adjust recursive caller to pass true to the new argument. (ix86_expand_set_or_movmem): Adjust decide_alg caller. * gcc.target/i386/pr70062.c: New test. 2016-02-22 Jakub Jelinek <ja...@redhat.com> PR target/69888 * config/i386/i386.c (decide_alg): Ensure we don't recurse with identical arguments. Formatting and spelling fixes. * gcc.target/i386/pr69888.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr69888.c branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr70062.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/i386/i386.c branches/gcc-5-branch/gcc/testsuite/ChangeLog