re PR c/34985 (Warning "defined but not used" despite __attribute__((__used__)))
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 29 Jul 2008 10:00:25 +0000 (10:00 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 29 Jul 2008 10:00:25 +0000 (10:00 +0000)
commite27fb29c0dec9ef1cf32fe44ecbf7a6fcc3f09a9
treef2de39c2d6ed6b532b2174d3e32c316cae390851
parent1fbfb0e27a982802abc2cdd4e5a7d5c4eff49f5e
re PR c/34985 (Warning "defined but not used" despite __attribute__((__used__)))

2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 34985
* c-decl.c (merge_decls): Merge USED flags.
cp/
* decl.c (duplicate_decls): Merge USED flags.
testsuite/
* gcc.dg/pr34985.c: New.
* g++.dg/warn/pr34985.C: New.

From-SVN: r138235
gcc/ChangeLog
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr34985.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr34985.c [new file with mode: 0644]