symtab.c (symtab_node::increase_alignment): Correct max alignment check.
authorPaul Koning <ni1d@arrl.net>
Mon, 22 Oct 2018 23:51:05 +0000 (19:51 -0400)
committerPaul Koning <pkoning@gcc.gnu.org>
Mon, 22 Oct 2018 23:51:05 +0000 (19:51 -0400)
* symtab.c (symtab_node::increase_alignment): Correct max
alignment check.

From-SVN: r265404

gcc/ChangeLog
gcc/symtab.c

index 472d8f7440c5de32715b041266c032b68569fcf6..0b7af4dac21ce8be6de0f8126f55945bdb8d5e85 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-22  Paul Koning  <ni1d@arrl.net>
+
+       * symtab.c (symtab_node::increase_alignment): Correct max
+       alignment check.
+
 2018-10-22  Yury Gribov  <tetra2005@gmail.com>
 
        PR tree-optimization/87633
index 3cf1f629413768363925a3a13c153e5b290c5057..baa825598b381e87e1345dc751fc928f7b9c762a 100644 (file)
@@ -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);