Commit 022c0cd1 by Richard Henderson Committed by Richard Henderson

Fix init_sync_libfuncs_1 iteration.

        * optabs.c (init_sync_libfuncs_1): Include max in iteration.

From-SVN: r181749
parent fec2ef4b
2011-11-26 Richard Henderson <rth@redhat.com>
* optabs.c (init_sync_libfuncs_1): Include max in iteration.
* omp-low.c (expand_omp_atomic): Assume anything aligned to
BIGGEST_ALIGNMENT is aligned.
......@@ -6606,7 +6606,7 @@ init_sync_libfuncs_1 (optab tab, const char *base, int max)
buf[len + 2] = '\0';
mode = QImode;
for (i = 1; i < max; i *= 2)
for (i = 1; i <= max; i *= 2)
{
buf[len + 1] = '0' + i;
set_optab_libfunc (tab, mode, buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment