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 in cp/mangle.c. Andreas. something

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

2007-11-28 Thread Dave Korn
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 magical hidden library? I could not find them in my gcc installations both native and i386-unknown-elf

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

2007-11-28 Thread 'Daniel Jacobowitz'
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 this one. -- Daniel Jacobowitz CodeSourcery

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 magical hidden library? I could not find them

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

2007-11-28 Thread Dave Korn
On 28 November 2007 18:57, Stephane Hockenhull wrote: if you actually read my email Of course I read your email. I said : the std::string template is NOT compiled into the .s file Well, yes, but you also said they weren't anywhere else either. So it wasn't

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 this one. is there a way to disable

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 this one. ar x ../libstdc++.a grep

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

2007-11-28 Thread 'Daniel Jacobowitz'
On Wed, Nov 28, 2007 at 03:38:50PM -0500, Stephane Hockenhull wrote: 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

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

2007-11-28 Thread Andrew Pinski
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 option for it. It is a source level option. Remove all the use of extern template in the headers of libstdc++.

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

2007-11-28 Thread Jonathan Wakely
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 Hockenhull wrote: hence my question: where is it? In libstdc++. You have to link with libstdc++ to use the STL,

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 option for it. It is a source level option.

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 Hockenhull wrote: hence my question: where is it?

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

2007-11-27 Thread Dave Korn
On 27 November 2007 18:47, 'Daniel Jacobowitz' wrote: On Tue, Nov 27, 2007 at 06:39:09PM -, Dave Korn wrote: joking aside, we need to generate ELF object files for running on windows. OK, you are now attempting something very very wrong indeed. The win32 version of the assembler will

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

2007-11-27 Thread Stephane Hockenhull
On Tuesday 27 November 2007 14:00, Dave Korn wrote: On 27 November 2007 18:47, 'Daniel Jacobowitz' wrote: On Tue, Nov 27, 2007 at 06:39:09PM -, Dave Korn wrote: joking aside, we need to generate ELF object files for running on windows. OK, you are now attempting something very

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

2007-11-27 Thread Andrew Pinski
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 Windows 32 anyways, it is PE-COFF. I am just wondering what exactly is missing that you think you

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

2007-11-27 Thread Andreas Schwab
Stephane Hockenhull [EMAIL PROTECTED] writes: 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. Actually I think you rather want to look for places that use

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 Windows 32 anyways, it is PE-COFF. I am

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 in cp/mangle.c. Andreas. *THANK YOU*