Fix init_sync_libfuncs_1 iteration.
* optabs.c (init_sync_libfuncs_1): Include max in iteration. From-SVN: r181749
This commit is contained in:
parent
fec2ef4b68
commit
022c0cd11d
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user