From a02a80035c4946255a8c994258298cb6a7971be5 Mon Sep 17 00:00:00 2001 From: jakub Date: Mon, 22 Feb 2016 21:34:49 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233615 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/i386/i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5c034f243043..29c73f6ff459 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -26153,7 +26153,7 @@ decide_alg (HOST_WIDE_INT count, HOST_WIDE_INT expected_size, || !alg_usable_p (algs->unknown_size, memset, have_as))) { enum stringop_alg alg; - HOST_WIDE_INT new_expected_size = max > 0 ? max / 2 : 2048; + HOST_WIDE_INT new_expected_size = (max > 0 ? max : 4096) / 2; /* If there aren't any usable algorithms or if recursing with the same arguments as before, then recursing on smaller sizes or -- 2.47.3