re PR c/90760 (ICE on attributes section and alias in set_section, at symtab.c:1573)
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 Jun 2019 07:14:08 +0000 (09:14 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Jun 2019 07:14:08 +0000 (09:14 +0200)
commitf3139680c36885f772828607e2e4a6a3df7ec4aa
treeaf72c9664f32d76c127615239f7908c094f8f2e4
parentbfde1e21735900800e42546d0307143d6ca5fe44
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
gcc/ChangeLog
gcc/symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr90760.c [new file with mode: 0644]