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++/14391] -fno-weak vs. __GXX_WEAK__


------- 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


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