在 2023-04-27 23:09, LIU Hao 写道:
`gcc -S` can be used to compile the source to assembly. The C source contains static variables named `shr` and `si`, which get compiled to something like

    .lcomm shr,8,8
    .lcomm shi,8,8
    .lcomm sr,8,8
    .lcomm si,8,8

Not these, but

        mov     rdx, QWORD PTR shr[rip]

Maybe GCC shouldn't generate this syntax (Clang doesn't) [1], or it gets misinterpreted by AS. Anyway `-masm=att` will solve this issue.


[1] https://gcc.godbolt.org/z/5M9G7vGs3



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to