* c-common.c (handle_used_attribute): Accept static data too.
* gcc.dg/attr-invalid.c: Allow __used__ on static data. * gcc.dg/attr-used-2.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63082 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 5 additions, 1 deletiongcc/ChangeLog
- gcc/c-common.c 8 additions, 5 deletionsgcc/c-common.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/attr-invalid.c 2 additions, 2 deletionsgcc/testsuite/gcc.dg/attr-invalid.c
- gcc/testsuite/gcc.dg/attr-used-2.c 11 additions, 0 deletionsgcc/testsuite/gcc.dg/attr-used-2.c
Loading
Please register or sign in to comment