[Bug target/86673] [8/9 regression] inline asm sometimes ignores 'register asm("reg")' declarations

amonakov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 25 16:13:00 GMT 2018


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

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #14 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Indeed, I agree the documentation should mention that (I can write a patch).
IIRC 'volatile register' also does not behave intuitively (I'll try to double
check).

I'm unsure about a warning, it seems "doing it right" might require changes in
both C and C++ frontends, and issuing a warning only if an asm statement using
the register variable is present?

Adding Jakub to Cc.


More information about the Gcc-bugs mailing list