public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94522] New: Enhancement request: asm goto with outputs
@ 2020-04-07 16:02 bp at alien8 dot de
  2020-04-07 21:22 ` [Bug inline-asm/94522] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bp at alien8 dot de @ 2020-04-07 16:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94522

            Bug ID: 94522
           Summary: Enhancement request: asm goto with outputs
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bp at alien8 dot de
  Target Milestone: ---

Hi all,

this came up recently on the kernel ML (see
https://lkml.kernel.org/r/20200402134051.GC9352@zn.tnic) and we thought it
might be a good idea to support it. In the same "fallthrough" fashion like
clang:

https://reviews.llvm.org/rG50cac248773

Micha (CCed) says that it should be relatively easy to do that in gcc too so in
case someone feels bored in the future... :)

Some other useful scenarios, courtesy of Linus, would be exception handling, to
avoid register pressure and in the alternatives patching we do in the kernel.
And in general, an output value from the asm goto("") in the fallthrough case
might come in handy.

Thx.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-09-01  1:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 16:02 [Bug c/94522] New: Enhancement request: asm goto with outputs bp at alien8 dot de
2020-04-07 21:22 ` [Bug inline-asm/94522] " pinskia at gcc dot gnu.org
2020-04-07 21:24 ` pinskia at gcc dot gnu.org
2020-04-08  4:27 ` matz at gcc dot gnu.org
2020-04-08  6:30 ` rguenth at gcc dot gnu.org
2020-04-08 20:30 ` torvalds@linux-foundation.org
2020-04-08 20:56 ` torvalds@linux-foundation.org
2021-09-01  1:04 ` pinskia at gcc dot gnu.org

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).