From: Dave MacLachlan <dmaclach@google.com>
To: Andrew Pinski <pinskia@gmail.com>
Cc: binutils@sourceware.org, gcc-patches@gcc.gnu.org,
"DJ Delorie" <dj@delorie.com>,
"Daniel Berlin" <dannyb@google.com>,
"Mike Stump" <mrs@apple.com>
Subject: Re: binutils/libiberty patch for c++filt to demangle ObjC++ symbols
Date: Fri, 20 Apr 2007 00:02:00 -0000 [thread overview]
Message-ID: <79E2C699-C52B-469D-A836-A7BA91E4E275@google.com> (raw)
In-Reply-To: <de8d50360704131017m6177d258rc274a562c9a870a3@mail.gmail.com>
On Apr 13, 2007, at 10:17 , Andrew Pinski wrote:
> On 4/13/07, Dave MacLachlan <dmaclach@google.com> wrote:
>> This is a patch for c++filt so it can demangle ObjC++ symbols. Turns
>> out that if you have an Objective C++ file (.mm) with a static var
>> inside of a method it will get mangled in such a fashion that the
>> current c++filt can't unmangle it:
>>
>> @implementation Foo
>> + (void)bar:(id)sender {
>> static int baz = 1;
>> }
>> @end
>>
>> gets mangled to
>>
>> _ZZ11+[Foo bar:]E3baz
>
>
> Actually I think this is the way it gets mangled on Darwin, I think it
> gets mangled differently on any other target as the other targets
> actually mangle the message name instead of keeping it as "+[Foo
> bar:]".
>
> So you might want to double check what happens under Linux with the
> objective-C++ front-end also.
>
> Thanks,
> Andrew Pinski
Andrew...
You are 100% correct. Should I change the option then from ObjC++ to
AppleObjC++ or do we hope that they are going to be changing their
mangling to be C++ compliant?
Other options?
Cheers,
Dave
next prev parent reply other threads:[~2007-04-19 21:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <27E8A691-807E-4CB5-A7EE-6A3FAC4013A1@google.com>
[not found] ` <200704130412.l3D4CbdI024712@localhost.localdomain>
2007-04-13 17:07 ` Dave MacLachlan
2007-04-13 17:27 ` Andrew Pinski
2007-04-20 0:02 ` Dave MacLachlan [this message]
2007-04-26 6:12 ` Eric Christopher
2007-04-26 6:13 ` Andrew Pinski
2007-04-26 7:01 ` Eric Christopher
2007-04-26 19:19 ` Dave MacLachlan
2007-04-27 0:33 ` Eric Christopher
2007-04-27 3:35 ` Dave MacLachlan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=79E2C699-C52B-469D-A836-A7BA91E4E275@google.com \
--to=dmaclach@google.com \
--cc=binutils@sourceware.org \
--cc=dannyb@google.com \
--cc=dj@delorie.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=mrs@apple.com \
--cc=pinskia@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).