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]

Re: Problem with `string', threading and shared libraries.


On Sep 28, 2001, Carlo Wood <carlo@alinoe.com> wrote:

> I was wondering, how can it be that `string' has a different
> mangling on different compilers/machines?  Isn't that a bug?

Well, it can be argued that they are actually two different classes,
one that is thread safe and uses a certain thread library to
accomplish this, and the other that isn't.  So, it's reasonable for
them to have different manglings, especially if you'd like to use both
of them in the same multi-threaded application, to save the costs of
synchronization when it's not necessary.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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