Fix init_sync_libfuncs_1 iteration.

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

From-SVN: r181749
This commit is contained in:
Richard Henderson 2011-11-26 16:06:16 -08:00 committed by Richard Henderson
parent fec2ef4b68
commit 022c0cd11d
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
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.

View File

@ -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);