This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/25999] [4.0/4.1/4.2 Regression] compiler loses extern "C" for function after #pragma weak



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-01-28 22:11 -------
Subject: Bug 25999

Author: mmitchel
Date: Sat Jan 28 22:11:42 2006
New Revision: 110340

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110340
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/ext/pragmaweak1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25999


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]