gas 2.8.1 CPU32 bug (Was: as: unrecognized option `-c68020')

Ian Lance Taylor ian@cygnus.com
Fri Oct 24 07:32:00 GMT 1997


   Date: Fri, 24 Oct 1997 11:18:01 +0100 (BST)
   From: Mark Phillips <M.S.Phillips@nortel.co.uk>

   The comment in include/opcode/m68k.h:-
      *  all					(modes 0-6,7.*)
   lead me to believe that

   {"tstl",    one(0045200),   one(0177700), "*l", m68020up|cpu32|mcf5200 },

   would enable all the 7.* modes for tstl instructions, if the cpu was
   one of those listed, not to selectively enable some modes depending on
   the cpu32 command line switch.

The addressing modes added for the 68020 are not accepted if you
assemble for the cpu32 or the 68000.  This is handled by code in
gas/config/tc-m68k.c.  There's not reason to handle that in the opcode
table; that would mean you have to duplicate almost every instruction
that accepted 7.* modes.

Ian



More information about the crossgcc mailing list