re PR c/35330 (ICE with invalid pragma weak)
authorKai Tietz <ktietz@redhat.com>
Fri, 27 Feb 2015 10:44:43 +0000 (11:44 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Fri, 27 Feb 2015 10:44:43 +0000 (11:44 +0100)
commitd1783ae53cfc5cea69de151a4df63dead33a0386
treecccd444baeb8f19701371b711edd405a31aae37f
parent1310f119efaa7248016bcab2b3da6b83fc689c2d
re PR c/35330 (ICE with invalid pragma weak)

2015-02-27  Kai Tietz  <ktietz@redhat.com>

PR c/35330
* c-pragma.c (handle_pragma_weak): Do not try to create
weak/alias of declarations not being function, or variable
declarations.

2015-02-27  Kai Tietz  <ktietz@redhat.com>

PR c/35330
* gcc.dg/weak/weak-17.c: New file.

From-SVN: r221053
gcc/c-family/ChangeLog
gcc/c-family/c-pragma.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/weak/weak-17.c [new file with mode: 0644]