This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14391] -fno-weak vs. __GXX_WEAK__
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2005 20:35:49 -0000
- Subject: [Bug c++/14391] -fno-weak vs. __GXX_WEAK__
- References: <20040302214833.14391.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-01 20:35 -------
(In reply to comment #1)
> Confirmed, this patch should work (could you sumbit if it works for you?):
Looks like I had messed up the logic and the !flag_weak should have been just flag_weak.
Anyways this has been fixed by:
* c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
if !flag_weak.
* doc/cpp.texi (__DEPRECATED): Document.
(__EXCEPTIONS): Likewise.
(__GXX_WEAK__): Likewise.
* g++.dg/cpp/weak.C: New test.
See <http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00042.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14391