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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think you could say there is no sequence points in the inline-asm; just as
there is none with most things in C.  There for it is unspecified the order of
evulations of the function calls.  Therefor the code is undefined.  I don't
think we need to warn here (it is hard to warn due to the function call).

I don't think we need to document this either.  The main reason because of the
sequence points and concurrent side effects in C is also undefined.  Think of
an inline-asm as one statement and it goes to the same effect as that.

Reply via email to