[Bug target/95652] GCC 8.3.1 generates syntactically incorrect assembly code with -masm=intel
teo.samarzija at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 12 16:11:53 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95652
--- Comment #3 from Teo Samarzija <teo.samarzija at gmail dot com> ---
(In reply to Andrew Pinski from comment #2)
> This looks closer to a dup of bug 87986.
>
> Basically -masm=intel is not always working.
When does it occur? Maybe we can determine when it can occur and warn about it?
As far I can tell, it occurs when you use a reserved word in assembly as the
name of the global variable, and only under Linux (not under Windows, since the
names of global variables on Windows get prepended '_').
Why exactly does GCC use such a different convention for Windows and Linux?
Perhaps you can change that.
Besides, how does CLANG compile that same code fine, also under Linux and with
"-masm=intel"? Maybe you can copy the way CLANG does that.
More information about the Gcc-bugs
mailing list