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: 3 Mar 2004 04:03:01 -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 2004-03-03 04:02 -------
Confirmed, this patch should work (could you sumbit if it works for you?):
Index: c-cppbuiltin.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/c-cppbuiltin.c,v
retrieving revision 1.7.4.6
diff -u -p -r1.7.4.6 c-cppbuiltin.c
--- c-cppbuiltin.c 30 Jan 2004 13:13:30 -0000 1.7.4.6
+++ c-cppbuiltin.c 3 Mar 2004 04:01:25 -0000
@@ -296,7 +296,7 @@ c_cpp_builtins (cpp_reader *pfile)
if (c_dialect_cxx ())
{
- if (SUPPORTS_ONE_ONLY)
+ if (SUPPORTS_ONE_ONLY && !flag_weak)
cpp_define (pfile, "__GXX_WEAK__=1");
else
cpp_define (pfile, "__GXX_WEAK__=0");
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-03-03 04:03:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14391