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++/17042] [3.5 regression] Duplicated symbol in assembly output


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-15 23:44 -------
Reduced to:
struct A
{  A();  ~A(); };
A a;
extern "C" { void* __dso_handle __attribute__ ((__weak__)); }
void f()
{  __dso_handle = 0; }

Note the code it self is not right for what you want to do, instead it should be:
extern void* __dso_handle __attribute__ ((__weak__));

But the C++ front-end should be picking up the user variable and not making a new one.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-15 23:44:09
               date|                            |


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


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