From: Jason Merrill <jason@redhat.com>
To: Andrew Carlotti <andrew.carlotti@arm.com>, gcc-patches@gcc.gnu.org
Cc: Richard Biener <richard.guenther@gmail.com>
Subject: Re: [PATCH 4/5] cp: Use get_mangled_id in more places in mangle_decl
Date: Tue, 16 Jan 2024 15:24:14 -0500 [thread overview]
Message-ID: <2cb2811a-f7d1-48eb-b1fb-724a35fe53d1@redhat.com> (raw)
In-Reply-To: <8f8d566a-df83-8562-0420-cb01592ad98c@e124511.cambridge.arm.com>
On 1/15/24 06:28, Andrew Carlotti wrote:
> There's no functional change here, but it makes it clearer that all
> three locations should be doing the same thing (aside from changes to
> flag_abi_version).
OK.
> gcc/cp/ChangeLog:
>
> * mangle.cc (mangle_decl): Consistently use get_mangled_id.
>
>
> diff --git a/gcc/cp/mangle.cc b/gcc/cp/mangle.cc
> index a04bc584586f28cb80d21b5c6d647416aa8843df..9bd684608b9e3378292cdb042184ba603b3d69aa 100644
> --- a/gcc/cp/mangle.cc
> +++ b/gcc/cp/mangle.cc
> @@ -4503,8 +4503,7 @@ mangle_decl (const tree decl)
> return;
>
> flag_abi_version = flag_abi_compat_version;
> - id2 = mangle_decl_string (decl);
> - id2 = targetm.mangle_decl_assembler_name (decl, id2);
> + id2 = get_mangled_id (decl);
> flag_abi_version = save_ver;
>
> if (id2 != id)
> @@ -4519,8 +4518,7 @@ mangle_decl (const tree decl)
> || id2 == NULL_TREE)
> {
> flag_abi_version = warn_abi_version;
> - id2 = mangle_decl_string (decl);
> - id2 = targetm.mangle_decl_assembler_name (decl, id2);
> + id2 = get_mangled_id (decl);
> }
> flag_abi_version = save_ver;
>
>
next prev parent reply other threads:[~2024-01-16 20:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-15 11:26 [PATCH 0/5] Fix fmv mangling for AArch64 Andrew Carlotti
2024-01-15 11:26 ` [PATCH 1/5] testsuite: Add tests for fmv symbol presence and mangling Andrew Carlotti
2024-01-15 11:27 ` [PATCH 2/5] tree: Extend DECL_FUNCTION_VERSIONED to an enum Andrew Carlotti
2024-01-15 12:28 ` Richard Biener
2024-01-16 8:21 ` Andrew Carlotti
2024-01-16 10:42 ` [PATCH] aarch64: Fix function multiversioning mangling Andrew Carlotti
2024-01-25 16:49 ` Richard Sandiford
2024-01-15 11:27 ` [PATCH 3/5] Change create_version_clone_with_body parameter name Andrew Carlotti
2024-01-15 11:28 ` [PATCH 4/5] cp: Use get_mangled_id in more places in mangle_decl Andrew Carlotti
2024-01-16 20:24 ` Jason Merrill [this message]
2024-01-15 11:28 ` [PATCH 5/5] Add target hook for function version name mangling Andrew Carlotti
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=2cb2811a-f7d1-48eb-b1fb-724a35fe53d1@redhat.com \
--to=jason@redhat.com \
--cc=andrew.carlotti@arm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@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).