re PR middle-end/67330 (ICE handling weak attributes)
authorMarek Polacek <polacek@redhat.com>
Tue, 25 Aug 2015 20:28:59 +0000 (20:28 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 25 Aug 2015 20:28:59 +0000 (20:28 +0000)
commitc316b5e4f1f7987e37641667fb47eb37f32f0e2b
tree06eefc14c8475e442a71d5919bce7072a7d7e3b2
parent630a286ab6c4514c4cc4ff154cf68bf150f164f2
re PR middle-end/67330 (ICE handling weak attributes)

PR middle-end/67330
* varasm.c (declare_weak): Return after giving an error.

* c-common.c (handle_weak_attribute): Don't check whether the
visibility can be changed here.

* gcc.dg/weak/weak-18.c: New test.

From-SVN: r227190
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/weak/weak-18.c [new file with mode: 0644]
gcc/varasm.c