Index: i386.c =================================================================== --- i386.c (revision 119305) +++ i386.c (working copy) @@ -13495,7 +13495,13 @@ else if (expected_size != -1) { unsigned int i; - enum stringop_alg alg = libcall; + enum stringop_alg alg; + + if (TARGET_INLINE_ALL_STRINGOPS) + alg = algs->size[0].alg; + else + alg = libcall; + for (i = 0; i < NAX_STRINGOP_ALGS; i++) { gcc_assert (algs->size[i].max);