This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: GCC 2.7.2.2 and MC68K


> From devolder@risc.sps.mot.com Mon Jul  7 09:28:37 1997
> I've successfully installed Binutils 2.8.1 for --target=m68k-coff
> --with-gnu-as --with-gnu-ld --nfp.  Now trying to install GCC 2.7.2.2
> with the same configuration, I get quite a ways until the following occurs:
 [..]
> _fixunsxfdi
> _floatdixf
> /var/tmp/cca00211.s: Assembler messages:
> /var/tmp/cca00211.s:97: Error: operands mismatch -- statement `tst.l %a4'
> ignored

add  TARGET_LIBGCC2_CFLAGS=-O0  to the Make flags.  Something
in the optimizer of 2.7.2 causes it to generate a M68020 opcode,
which the assembler rejects since you want M68000 code.  Adding
above will disable the optimizer for the library.  Alternatively,
you could go back to GCC 2.7.0, which does not have this trouble.


This question came up about a month ago.  Since I only have a M68000
reference manual, and not actual hardware, I err on the conservative
side.  Thus I say the assembler is right.


------
"We can't solve problems with the same thinking we used to create them."
                     - Albert Einstein
brian witt