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 underscor

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

2007-11-26 Thread Joe Buck
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 case > implemented? > > it seem to cause a problem with -fleading-underscore

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 case > > implemented? >

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

2007-11-26 Thread Daniel Jacobowitz
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 templates > > > > I was wondering why and where in the g++ source code is that special case > >

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

2007-11-26 Thread Joe Buck
On Mon, Nov 26, 2007 at 02:01:30PM -0500, 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 templates > > > > > >

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 > > > templates > > > > > > I was wond

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

2007-11-26 Thread Joe Buck
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, Nov 26, 2007 at 01:33:54PM -0500, Stephane Hockenhull wrote: > > > > hi, it seem stl template

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

2007-11-26 Thread Daniel Jacobowitz
On Mon, Nov 26, 2007 at 04:29:35PM -0800, Joe Buck wrote: > But why are you using -fleading-underscore? It's the default for a lot of targets. I'd still like to see a concrete example of the problem... -- Daniel Jacobowitz CodeSourcery

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, Nov 26, 2007 at 01:33:54PM -0500, S

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

2007-11-27 Thread Stephane Hockenhull
On Monday 26 November 2007 22:48, Daniel Jacobowitz wrote: > It's the default for a lot of targets.  I'd still like to see a > concrete example of the problem... we're cross-compiling to win32, everything works fine until we use the std::string template, the special case name mangling for std::s

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

2007-11-27 Thread Dave Korn
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 almost all platforms. And the compiler *automatically* puts leading underscores on symbols on a

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

2007-11-27 Thread Dave Korn
On 27 November 2007 16:10, Dave Korn wrote: > Yes, but as you yourself explain, the symbols already have leading > underscores, and when you use -fleading-underscore, because it fails to ^ ... when you use -fleading-underscores, *a problem

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 almost all platforms. > > And the compile

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

2007-11-27 Thread 'Daniel Jacobowitz'
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 not generate ELF files, and even if it did, > wind

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

2007-11-27 Thread Dave Korn
On 27 November 2007 17:35, Stephane Hockenhull wrote: > On Tuesday 27 November 2007 11:09, you wrote: >> On 27 November 2007 15:49, Stephane Hockenhull wrote: >>> on the win32 platform all C symbols requires a leading underscore >> >> Yes, that is the case on almost all platforms. >> >> And