public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Iain Sandoe <iain@sandoe.co.uk>
Cc: Jan Hubicka <hubicka@ucw.cz>,
	GCC Patches <gcc-patches@gcc.gnu.org>,
	 Jason Merrill <jason@redhat.com>
Subject: Re: [PATCH] c++, coroutines: Stabilize names of promoted slot vars [PR101118].
Date: Tue, 28 Mar 2023 13:27:54 +0200	[thread overview]
Message-ID: <CAFiYyc0gmWNfCJ46AsJHNT7-pUry8u1giHe4YxxQS1zCmUD3Nw@mail.gmail.com> (raw)
In-Reply-To: <B14AC25C-B4B3-42BF-BA33-BA661EF49D53@sandoe.co.uk>

On Tue, Mar 28, 2023 at 1:16 PM Iain Sandoe <iain@sandoe.co.uk> wrote:
>
> Hi Richard
>
> > On 28 Mar 2023, at 12:27, Iain Sandoe <iain@sandoe.co.uk> wrote:
> >> On 28 Mar 2023, at 11:58, Richard Biener <richard.guenther@gmail.com> wrote:
> >>
> >> On Mon, Mar 27, 2023 at 9:32 AM Iain Sandoe <iain@sandoe.co.uk> wrote:
> >>>
> >>>> On 27 Mar 2023, at 12:48, Richard Biener <richard.guenther@gmail.com> wrote:
> >>>>
> >>>> On Mon, Mar 27, 2023 at 8:58 AM Iain Sandoe <iain@sandoe.co.uk> wrote:
>
> >>>>
> >>>> If the two layouts are used to access the same objects you might run
> >>>> into TBAA issues.
> >>>> But making them appear the same but still separate types won't help that issue
> >>>> (but -flto will "fix" it for you then)
> >>>
> >>> … but I wonder if I should be preventing LTO from doing this (perhaps my frame
> >>> type needs a uniquing addition, and then we would not care about the differing).
> >>>
> >>> hmm… now I’m not sure that this patch is the right fix .. I’d welcome Jason’s take
> >>> on this.
>
> taking another look to refresh my memory
>  - the frame type is named for the function that it corresponds to.
>
> from the testcase example:
> e.g. if we have a function _Z3fn1v the frame type will be _Z3fn1v.Frame
> so -  if that is incorrect, then we have deeper problems - since that would imply that the
> orignal function was also incorrectly named.
>
> So, ISTM that LTO is DTRT to merge the types (and presumably the functions) and the
> fix proposed is minimally invasive for this late in the cycle .. with an intent to revisit this
> in the future.

Btw, I agree the fix is a strict improvement even without fully
understanding the context.

So it's OK from my side.

Richard.

> Iain
>

  reply	other threads:[~2023-03-28 11:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-26 16:54 [PATCH] c++,coroutines: " Iain Sandoe
2023-03-27  6:40 ` [PATCH] c++, coroutines: " Richard Biener
2023-03-27  6:58   ` Iain Sandoe
2023-03-27  7:18     ` Richard Biener
2023-03-27  7:32       ` Iain Sandoe
2023-03-28  6:28         ` Richard Biener
2023-03-28  6:57           ` Iain Sandoe
2023-03-28 11:16             ` Iain Sandoe
2023-03-28 11:27               ` Richard Biener [this message]
2023-03-29 19:23 ` [PATCH] c++,coroutines: " Jason Merrill
2023-03-30  7:53   ` Iain Sandoe
2023-03-30 20:50     ` Jason Merrill

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=CAFiYyc0gmWNfCJ46AsJHNT7-pUry8u1giHe4YxxQS1zCmUD3Nw@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    --cc=iain@sandoe.co.uk \
    --cc=jason@redhat.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).