🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53148

gcc-2.0 name mangling

#53148
From: Tom Weinstein
Date: Thu, 27 Feb 1992 23:42
22 lines
1192 bytes
I just built gcc-2.0, and it seems to do name mangling differently than
AT&T cfront.  Here's an example.  I have some code that calls this
function:

virtual void DoLower(Interactor*);

which is part of the Scene class.  Cfront mangles the name thusly:

_DoLower__7ivSceneFP12ivInteractor

while gcc-2.0 does this:

_DoLower__7ivSceneP12ivInteractor

Note that there's an extra 'F' in the name cfront generates.

My questions are: why does it do this?  Can I do anything to make them
work correctly together?

--
Mantas do fly, give sufficient    | Tom Weinstein  tomw@bears.ece.ucsb.edu
   quantities of helium.          |
Technical Details
Message-ID: <TOMW.92Feb27154205@latchup.ucsb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!ucsbcsl!hub!tomw

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d442a3a97625629c,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-02-27 16:21:00 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!ucsbcsl!hub!tomw
From: tomw@latchup.ucsb.edu (Tom Weinstein)
Newsgroups: gnu.gcc.help
Subject: gcc-2.0 name mangling
Message-ID: <TOMW.92Feb27154205@latchup.ucsb.edu>
Date: 27 Feb 92 23:42:05 GMT
Sender: root@ucsbcsl.ucsb.edu
Reply-To: tomw@bears.ece.ucsb.edu
Distribution: gnu
Organization: Silicon Graphics Inc.
Lines: 22