re PR c/32511 (GCC rejects inline+weak function)
authorRichard Guenther <rguenther@suse.de>
Thu, 27 Mar 2008 16:34:55 +0000 (16:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Mar 2008 16:34:55 +0000 (16:34 +0000)
commit6b4e94bcaef89af9899da67f2dffc54496120535
tree80c072ec99b03af1c2177a37fdaa302f07d39aa2
parent62bc00e258331aeba39f47e9fee275f4ba5b7956
re PR c/32511 (GCC rejects inline+weak function)

2008-03-27  Richard Guenther  <rguenther@suse.de>

PR c/32511
* c-common.c (handle_weak_attribute): Reject combination of
weak and inline.

* gcc.dg/attr-weak-1.c: New testcase.

From-SVN: r133646
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-weak-1.c [new file with mode: 0644]