From: Paul Koning Date: Mon, 22 Oct 2018 23:51:05 +0000 (-0400) Subject: symtab.c (symtab_node::increase_alignment): Correct max alignment check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9758098032612eddbb0f538e372924335c5eca33;p=gcc.git symtab.c (symtab_node::increase_alignment): Correct max alignment check. * symtab.c (symtab_node::increase_alignment): Correct max alignment check. From-SVN: r265404 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 472d8f7440c..0b7af4dac21 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-10-22 Paul Koning + + * symtab.c (symtab_node::increase_alignment): Correct max + alignment check. + 2018-10-22 Yury Gribov PR tree-optimization/87633 diff --git a/gcc/symtab.c b/gcc/symtab.c index 3cf1f629413..baa825598b3 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -2205,7 +2205,7 @@ increase_alignment_1 (symtab_node *n, void *v) void symtab_node::increase_alignment (unsigned int align) { - gcc_assert (can_increase_alignment_p () && align < MAX_OFILE_ALIGNMENT); + gcc_assert (can_increase_alignment_p () && align <= MAX_OFILE_ALIGNMENT); ultimate_alias_target()->call_for_symbol_and_aliases (increase_alignment_1, (void *)(size_t) align, true);