From: Josh Poimboeuf <jpoimboe@redhat.com>
To: Martin Jambor <mjambor@suse.cz>
Cc: Miroslav Benes <mbenes@suse.cz>,
Randy Dunlap <rdunlap@infradead.org>,
Stephen Rothwell <sfr@canb.auug.org.au>,
Linux Next Mailing List <linux-next@vger.kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
mliska@suse.cz, pmladek@suse.cz, live-patching@vger.kernel.org,
Jan Hubicka <hubicka@ucw.cz>
Subject: Re: linux-next: Tree for May 21 (objtool warnings)
Date: Wed, 27 May 2020 10:09:25 -0500 [thread overview]
Message-ID: <20200527150925.jytr4lnqptxlhsbi@treble> (raw)
In-Reply-To: <ri65zch21ri.fsf@suse.cz>
On Wed, May 27, 2020 at 10:57:53AM +0200, Martin Jambor wrote:
> Hi,
>
> On Tue, May 26 2020, Miroslav Benes wrote:
> > On Tue, 26 May 2020, Josh Poimboeuf wrote:
> >
> >> On Mon, May 25, 2020 at 01:07:27PM +0200, Miroslav Benes wrote:
> >> > > I'll try to find out which optimization does this, because it is a
> >> > > slightly different scenario than hiding __noreturn from the callees.
> >> > > Probably -fno-ipa-pure-const again.
> >> >
> >> > And it is indeed -fno-ipa-pure-const again.
> >>
> >> It still seems odd to me that GCC's dead end detection seems to break
> >> with -fno-ipa-pure-const. Do you know if these issues can be fixed on
> >> the GCC side?
> >
> > It is odd. I asked Martin and Martin about that yesterday (CCed). It could
> > be possible to enable just noreturn propagation for -flive-patching if I
> > understood correctly. The attribute would need to be preserved in a
> > patched function then, but that should be manageable.
> >
> > Marking functions as __noreturn is one thing (I think it is useful on its
> > own as mentioned in the older thread about -flive-patching), but
> > __always_inline solution in this case is really arbitrary.
>
> Noreturn functions generally tend to be very cold ones and so you do not
> really want to inline them.
The issue here is that with -fno-ipa-pure-const, GCC no longer
automatically detects that the static inline function is noreturn, so it
emits unreachable instructions after a call to it.
--
Josh
next prev parent reply other threads:[~2020-05-27 15:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-21 14:12 linux-next: Tree for May 21 Stephen Rothwell
2020-05-21 15:09 ` Daniel Thompson
2020-05-22 2:34 ` linux-next: Tree for May 21 (objtool warnings) Randy Dunlap
2020-05-22 16:34 ` Josh Poimboeuf
2020-05-25 10:10 ` Miroslav Benes
2020-05-25 11:07 ` Miroslav Benes
2020-05-26 14:01 ` Josh Poimboeuf
2020-05-26 16:39 ` Miroslav Benes
2020-05-27 8:57 ` Martin Jambor
2020-05-27 15:09 ` Josh Poimboeuf [this message]
2020-05-25 18:04 ` Randy Dunlap
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=20200527150925.jytr4lnqptxlhsbi@treble \
--to=jpoimboe@redhat.com \
--cc=hubicka@ucw.cz \
--cc=linux-next@vger.kernel.org \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=mjambor@suse.cz \
--cc=mliska@suse.cz \
--cc=peterz@infradead.org \
--cc=pmladek@suse.cz \
--cc=rdunlap@infradead.org \
--cc=sfr@canb.auug.org.au \
/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