GCC 2.7.2.2 and MC68K
Brian Witt
aleks@spoda.gentoo.com
Mon Jul 7 11:38:00 GMT 1997
> 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
More information about the crossgcc
mailing list