re PR c/28287 (ICE with misplaced attribute weak)
authorDanny Smith <dannysmith@users.sourceforge.net>
Tue, 15 Aug 2006 21:46:30 +0000 (21:46 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Tue, 15 Aug 2006 21:46:30 +0000 (21:46 +0000)
commit55af93a8a3f04d7a1953fafba7d7e169754cb863
tree211877abcbf327a83cb6b5734399fa9e50c8c349
parentc1782c0e69d219d3ccceeca553a3d1d90622d1af
re PR c/28287 (ICE with misplaced attribute weak)

gcc
PR c/28287
* c-common.c (handle_weak_attribute): Ignore and warn if
not a FUNCTION_ or VAR_DECL

testsuite

* gcc.dg/attr-invalid.c: Add tests for invalid weak attribute.

From-SVN: r116170
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-invalid.c