* optabs.c (init_sync_libfuncs_1): Include max in iteration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181749
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
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);