public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: ibuclaw@gdcproject.org
To: Jan Beulich <jbeulich@suse.com>, "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Cc: Ian Lance Taylor <ian@airs.com>
Subject: Re: libiberty D tuple demangling
Date: Mon, 25 Jul 2022 14:05:33 +0200 (CEST)	[thread overview]
Message-ID: <1048129500.281965.1658750733793@office.mailbox.org> (raw)
In-Reply-To: <168911bd-ba44-e197-ffd7-c687a6d7eb06@suse.com>

> On 25/07/2022 08:45 CEST Jan Beulich <jbeulich@suse.com> wrote:
> 
>  
> Hello,
> 
> while commit 3f30a274913b ("libiberty: Update D symbol demangling
> for latest ABI spec") mentions in its description that tuple encoding
> has changed, there's no real adjustment to dlang_parse_tuple() there,
> nor are there any new (or replaced) test cases for that. Was this
> simply overlooked?
> 

Hi Jan,

Is there any specific example that fails to demangle, or are you just skimming?

From what I recall, there is a couple places in the dlang_demangle parser that handle ambiguities in a mangled symbol.  The ABI change only added a terminating 'Z', which makes said code that handles ambiguity redundant - but of course kept around so we handle both old and new symbols.

> Furthermore the current ABI specifies "B Parameters Z". As I don't
> know what the old ABI said, I can only wonder whether the present
> code decoding (in a loop) merely a Type (and not a Parameter) was
> actually correct.
> 

Do you think we should instead be calling dlang_function_args instead?

(Having a quick look at both, that does seem to be the case).

Iain.

  reply	other threads:[~2022-07-25 12:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f35a2359-e102-7682-65b4-e56e602f9adf@aol.com>
2022-07-25  6:45 ` Jan Beulich
2022-07-25 12:05   ` ibuclaw [this message]
2022-07-25 12:13     ` Jan Beulich
2022-07-25 15:45       ` ibuclaw
2022-07-25 15:57         ` Jan Beulich

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=1048129500.281965.1658750733793@office.mailbox.org \
    --to=ibuclaw@gdcproject.org \
    --cc=gcc@gcc.gnu.org \
    --cc=ian@airs.com \
    --cc=jbeulich@suse.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).