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

--- Comment #13 from Rainer Orth <ro at gcc dot gnu.org> 2011-04-18 16:49:29 
UTC ---
I've now compared the assembler output on i386-pc-solaris2.11 with Sun as and
gas: with as, the g++-dg-lto-20091219-01.ltrans0.s file has a call to

      call    _ZL20__gthrw_pthread_onceP5_oncePFvvE.2086.2083

but only defines

       .weak   pthread_once

With gas instead, I have

        call    _ZL20__gthrw_pthread_onceP5_oncePFvvE.2086.2086
        .weakref     
_ZL20__gthrw_pthread_onceP5_oncePFvvE.2086.2086,pthread_once

Sun as has no .weakref support.

I'm attaching the assembler outputs both with as and gas.

  Rainer

Reply via email to