This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: other/8311: Legal intel instructions being flagged as illegal


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]