https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89401
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|c++ |inline-asm Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >When I used nasm to generate object files it did it。 Since you are using top-level inline, GCC just passes it on to the assembler. Report this to binutils instead (https://sourceware.org/bugzilla).