other/8311: Legal intel instructions being flagged as illegal
zack@gcc.gnu.org
zack@gcc.gnu.org
Tue Oct 22 13:21:00 GMT 2002
Synopsis: Legal intel instructions being flagged as illegal
State-Changed-From-To: open->closed
State-Changed-By: zack
State-Changed-When: Tue Oct 22 13:20:42 2002
State-Changed-Why:
GCC does not attempt to interpret the text of an asm() statement, beyond processing %-substitutions for operands. The error message you quoted came from the assembler.
The instruction mnemonics "pushfd" and "popfd" are valid only in Intel syntax. In its default mode, GAS uses AT&T syntax, in which these opcodes are spelled "pushf" and "popf" respectively. You can either change your code to use these, or (with sufficiently recent versions of GCC and GAS) you can use the -masm=intel command line switch.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8311
More information about the Gcc-bugs
mailing list