re PR c++/25999 (compiler loses extern "C" for function after #pragma weak)
authorMark Mitchell <mark@codesourcery.com>
Sat, 28 Jan 2006 22:11:42 +0000 (22:11 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 28 Jan 2006 22:11:42 +0000 (22:11 +0000)
commit2ef06beb77833e951ce436d9b0b954090e4248b6
tree35aae564506e3c5cfe938e08bca9bf4463d4065c
parent5f1f4746bec0ee6d3a40d9ad761870bcbd8d5f50
re PR c++/25999 (compiler loses extern "C" for function after #pragma weak)

PR c++/25999
* decl.c (start_preparsed_function): Call maybe_apply_pragma_weak
here, not ...
(start_function): ... here.
PR c++/25999
* g++.dg/ext/pragmaweak1.C: New test.

From-SVN: r110340
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pragmaweak1.C [new file with mode: 0644]