aboutsummaryrefslogtreecommitdiff
path: root/gcc/symtab.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-06-12 09:14:08 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-06-12 09:14:08 +0200
commitf3139680c36885f772828607e2e4a6a3df7ec4aa (patch)
treeaf72c9664f32d76c127615239f7908c094f8f2e4 /gcc/symtab.c
parentbfde1e21735900800e42546d0307143d6ca5fe44 (diff)
downloadgcc-f3139680c36885f772828607e2e4a6a3df7ec4aa.zip
gcc-f3139680c36885f772828607e2e4a6a3df7ec4aa.tar.gz
gcc-f3139680c36885f772828607e2e4a6a3df7ec4aa.tar.bz2
re PR c/90760 (ICE on attributes section and alias in set_section, at symtab.c:1573)
PR c/90760 * symtab.c (symtab_node::set_section): Allow being called on aliases as long as they aren't analyzed yet. * gcc.dg/pr90760.c: New test. From-SVN: r272178
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r--gcc/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c
index 905ca05..b1589ea 100644
--- a/gcc/symtab.c
+++ b/gcc/symtab.c
@@ -1583,7 +1583,7 @@ symtab_node::set_section (symtab_node *n, void *s)
void
symtab_node::set_section (const char *section)
{
- gcc_assert (!this->alias);
+ gcc_assert (!this->alias || !this->analyzed);
call_for_symbol_and_aliases
(symtab_node::set_section, const_cast<char *>(section), true);
}