]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c/90760 (ICE on attributes section and alias in set_section, at symta...
authorJakub Jelinek <jakub@redhat.com>
Fri, 28 Jun 2019 22:10:04 +0000 (00:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 28 Jun 2019 22:10:04 +0000 (00:10 +0200)
commit03b70afb515142cac65c579de7bec81906f79992
treecb857bf2386a21c4c3c1877f078c849250cf0574
parenta7c7481a07ec5fc8d35063da34ff82d0451f229f
backport: re PR c/90760 (ICE on attributes section and alias in set_section, at symtab.c:1573)

Backported from mainline
2019-06-12  Jakub Jelinek  <jakub@redhat.com>

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: r272800
gcc/ChangeLog
gcc/symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr90760.c [new file with mode: 0644]