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


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