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: [980129]: bug in COFF's name mangling?


On Wed, 4 February 1998, 09:27:23, mmitchell@usa.net wrote:

 > 
 > >>>>> "Manfred" == Manfred Hollstein <Manfred.Hollstein@ks.sel.alcatel.de> writes:
 > 
 >     Manfred> Mark Mitchell, I know you are the one who worked very
 >     Manfred> hard on the template stuff.  Could it be, that one of
 >     Manfred> your latest changes broke this? I'm particularly thinking
 > 
 > Well, of course it could be! :-)  I don't think this particular change
 > is likely to be the culprit, but you never know I guess.

You're right, it isn't.

 > It looks to
 > me like __doami is in one case mangled as a non-template function,
 > while in the other it has been mangled as a template function.

Yup.

 > 
 > I am curious whether or not adding the following declaration at the
 > top of fcomplex.h seems to help in any way:
 > 
 >   template <class _FLT>
 >   complex<_FLT>&
 >   __doami (complex<_FLT>* ths, const complex<_FLT>& r);

Didn't help.

 > 
 > You could also try adding 
 > 
 > DECL_RTL (newdecl) = DECL_RTL (olddecl) 
 > 
 > in decl.c after this line:
 > 
 > DECL_ASSEMBLER_NAME (newdecl) = DECL_ASSEMBLER_NAME (olddecl);
 > 
 > but before these:
 > 
 >   /* Don't really know how much of the language-specific
 >      values we should copy from old to new.  */
 >   if (DECL_LANG_SPECIFIC (olddecl))
 > 

Didn't help either :-(

 > I'm interested in solving your problem partly because I think it
 > almost certainly reflects a latent bug somewhere else.
 > 

Manfred


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