bug with -fleading-underscore doubling underscore in some cases on templates

2007-11-20 Thread Stephane Hockenhull
avail. and std::string is the only template that seem to cause the behaviour i386-unknown-elf-g++ (GCC) 4.1.1 -- Stephane Hockenhull SSC-Studios.com

why are stl template classes not mangled as other classes and templates

2007-11-26 Thread Stephane Hockenhull
hi, it seem stl templates are not mangled as other classes and templates I was wondering why and where in the g++ source code is that special case implemented? it seem to cause a problem with -fleading-underscore -- Stephane Hockenhull SSC-Studios.com PS: why would someone wants to

Re: why are stl template classes not mangled as other classes and templates

2007-11-26 Thread Stephane Hockenhull
On Monday 26 November 2007 13:40, Joe Buck wrote: > On Mon, Nov 26, 2007 at 01:33:54PM -0500, Stephane Hockenhull wrote: > > hi, it seem stl templates are not mangled as other classes and templates > > > > I was wondering why and where in the g++ source code is that special

Re: why are stl template classes not mangled as other classes and templates

2007-11-26 Thread Stephane Hockenhull
On Monday 26 November 2007 14:01, Daniel Jacobowitz wrote: > On Mon, Nov 26, 2007 at 10:40:35AM -0800, Joe Buck wrote: > > On Mon, Nov 26, 2007 at 01:33:54PM -0500, Stephane Hockenhull wrote: > > > hi, it seem stl templates are not mangled as other classes and > > >

Re: why are stl template classes not mangled as other classes and templates

2007-11-27 Thread Stephane Hockenhull
On Monday 26 November 2007 19:29, Joe Buck wrote: > On Mon, Nov 26, 2007 at 04:02:48PM -0500, Stephane Hockenhull wrote: > > On Monday 26 November 2007 14:01, Daniel Jacobowitz wrote: > > > On Mon, Nov 26, 2007 at 10:40:35AM -0800, Joe Buck wrote: > > > > On Mon, No

Re: why are stl template classes not mangled as other classes and templates

2007-11-27 Thread Stephane Hockenhull
name mangling for std::string is partially broken by -fleading-underscore. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34166 -- Stephane Hockenhull SSC-Studios.com

Re: why are stl template classes not mangled as other classes and templates

2007-11-27 Thread Stephane Hockenhull
On Tuesday 27 November 2007 11:09, you wrote: > On 27 November 2007 15:49, Stephane Hockenhull wrote: > >> But why are you using -fleading-underscore? > > > > on the win32 platform all C symbols requires a leading underscore > > Yes, that is the case on almos

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-27 Thread Stephane Hockenhull
ers. please dont worry for us about ABI issues and what not, I've got that part working, thank you. now, if only someone actually knew where in the g++ source code the special case for std::string is I could fix that, provide a patch, and make the world a little bit better. -- Stephane Hockenhull SSC-Studios.com

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-27 Thread Stephane Hockenhull
On Tuesday 27 November 2007 15:40, Andrew Pinski wrote: > On 11/27/07, Stephane Hockenhull <[EMAIL PROTECTED]> wrote: > > no, it would not. > > because for one simple fact: COFF format lacks many features of ELF. > > What features are missing? COFF is not used for Win

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-27 Thread Stephane Hockenhull
On Tuesday 27 November 2007 15:50, Andreas Schwab wrote: > Stephane Hockenhull <[EMAIL PROTECTED]> writes: > > now, if only someone actually knew where in the g++ source code the > > special case for std::string is > > grep is your friend. Look for find_substitution

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-28 Thread Stephane Hockenhull
On Tuesday 27 November 2007 15:50, Andreas Schwab wrote: > Stephane Hockenhull <[EMAIL PROTECTED]> writes: > > now, if only someone actually knew where in the g++ source code the > > special case for std::string is > > grep is your friend. Look for find_substitution

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-28 Thread Stephane Hockenhull
On Wednesday 28 November 2007 12:35, Dave Korn wrote: > On 28 November 2007 17:33, Stephane Hockenhull wrote: > > something just occured to me ... the std::string template is not compiled > > into the .s file > > > > are those templates pre-compiled into some "magi

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-28 Thread Stephane Hockenhull
On Wednesday 28 November 2007 14:01, 'Daniel Jacobowitz' wrote: > On Wed, Nov 28, 2007 at 01:56:58PM -0500, Stephane Hockenhull wrote: > > hence my question: where is it? > > In libstdc++. You have to link with libstdc++ to use the STL, for > many reasons including

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-28 Thread Stephane Hockenhull
On Wednesday 28 November 2007 14:01, 'Daniel Jacobowitz' wrote: > On Wed, Nov 28, 2007 at 01:56:58PM -0500, Stephane Hockenhull wrote: > > hence my question: where is it? > > In libstdc++. You have to link with libstdc++ to use the STL, for > many reasons including th

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-28 Thread Stephane Hockenhull
On Wednesday 28 November 2007 16:25, Andrew Pinski wrote: > On 11/28/07, Stephane Hockenhull <[EMAIL PROTECTED]> wrote: > > is there a way to disable this behaviour for stl templates and have them > > compiled every time? > > > > I can't find a command line o

Re: why are stl template classes not mangled as other classes andtemplates

2007-11-28 Thread Stephane Hockenhull
On Wednesday 28 November 2007 17:24, Jonathan Wakely wrote: > On 28/11/2007, Stephane Hockenhull <[EMAIL PROTECTED]> wrote: > > On Wednesday 28 November 2007 14:01, 'Daniel Jacobowitz' wrote: > > > On Wed, Nov 28, 2007 at 01:56:58PM -0500, Stephane Hockenhul