OSDN Git Service

* c-decl.c (finish_decl): Apply pending #pragma weak regardless of
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Apr 2005 17:17:38 +0000 (17:17 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Apr 2005 17:17:38 +0000 (17:17 +0000)
commit3656266babaf3cfc9e535b327423c8287e740461
tree649a1980a862ee27ee5452e2511599dbef83526b
parente81f20f7aa289a04543dc896fc6d2f20c7a16070
* c-decl.c (finish_decl): Apply pending #pragma weak regardless of
scope.

cp:
* decl.c (start_decl): Apply pending #pragma weak regardless of
scope.

testsuite:
* gcc.dg/weak/weak-12.c, g++.dg/ext/weak2.C: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97733 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/weak2.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/weak/weak-12.c [new file with mode: 0644]