https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109854
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-05-15 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I get instead /usr/bin/ld: /tmp/cc9ZP9FF.ltrans0.ltrans.o: in function `a': <artificial>:(.text+0x7): undefined reference to `$.LC0' collect2: error: ld returned 1 exit status I would recommend against mixing different -masm dialects since at least for inline asm that can lead to different asm dialects being mixed.