🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53227

Re: gcc-2.0 name mangling

#53227
From: tiemann
Date: Thu, 05 Mar 1992 22:46
42 lines
2411 bytes
   Return-Path: help-gcc-request@prep.ai.mit.edu
   To: help-gcc@prep.ai.mit.edu
   Date: 6 Mar 92 06:48:59 GMT
   Organization: Solbourne, User Interface Group
   From: imp@solbourne.com (Warner Losh)
   Sender: help-gcc-request@prep.ai.mit.edu
   References: <A33092@AC.maus.de>, <TOMW.92Mar4123856@latchup.ucsb.edu>, <1992Mar6.020554.22495@bond>roy
   Subject: Re: gcc-2.0 name mangling
   
   
   
   While we're on the subject of name mangling, I thought I'd ask the
   following question.  I think I know the answer, but I haven't seen any
   direct statement:
   	Is g++ 2.0 "compatible" with cfront as shipped from AT&T (or
   sun) on a sparc?  By compatible, I mean can I mix and match objects
   from the the two of them and expect things to work?
   
   I gather the answer is no, they are only compatible on the source code
   level, but have different name mangling, virtual function table
   assignment, and other incompatibilities so I must either use cfront or
   g++, but not both.
   
   Some simple experiments seem to indicate that this is the case.  I'd
   like to know if this is a bug in some planned compatibility, or if it
   is beyond the scope of g++ and I shouldn't try to mix the two.
   
   Thanks a bunch for your time,
   
   Warner
   -- 
   Warner Losh		imp@Solbourne.COM	  MMP to DoD #882
   "You better stay away from him, he'll rip your lungs out Jim,
    He's looking for James Taylor" -- Warewolves of Boulder WZ

I just send mail to help-g++ about this.  cfront and g++ do not build
objects the same way, nor should you expect them to.  There is no ANSI
effort whatsoever to try to reconcile this fact.  You must be happy
with *source* compatibility only.  If you want more information about
why this must be, read all about from help-g++.

Michael
Technical Details
Message-ID: <9203061446.AA04449@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!tiemann
References: <1992Mar6.064859.19552@solbourne.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d442a3a97625629c
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-07 07:15:00 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!tiemann
From: tiemann@cygnus.com
Subject: Re: gcc-2.0 name mangling
Message-ID: <9203061446.AA04449@cygnus.com>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: <1992Mar6.064859.19552@solbourne.com>
Distribution: gnu
Date: Thu, 5 Mar 1992 22:46:42 GMT
Lines: 42