From 9758098032612eddbb0f538e372924335c5eca33 Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Mon, 22 Oct 2018 19:51:05 -0400 Subject: [PATCH] symtab.c (symtab_node::increase_alignment): Correct max alignment check. * symtab.c (symtab_node::increase_alignment): Correct max alignment check. From-SVN: r265404 --- gcc/ChangeLog | 5 +++++ gcc/symtab.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.30.2