Jakub Jelinek <ja...@redhat.com> writes:

> And for kernel perhaps we should add some new option which allows
> some dumb parsing of the toplevel asms and gather something from that
> parsing.

See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107779

> The restrictions I've implemented are:
> 1) asm qualifiers aren't still allowed, so asm goto or asm inline can't be
>    specified at toplevel, asm volatile has the volatile ignored for C++ with
>    a warning and is an error in C like before
> 2) I see good use for mainly input operands, output maybe to make it clear
>    that the inline asm may write some memory, I don't see a good use for
>    clobbers, so the patch doesn't allow those (and of course labels because
>    asm goto can't be specified)

One of the main uses for this is to specify functions that may get
called by the assembler. You proposal is to specify them as input "m" ?
Seems odd.  Perhaps this needs a new syntax.

One issue that asms also often run into is that they don't like
reordering. Some way to specify attribute((no_reorder)) would be useful.

-Andi

Reply via email to