Subject: egcs problem on m68k with -m68060
To: None <current-users@NetBSD.ORG>
From: Thorsten Frueauf <frueauf@ira.uka.de>
List: current-users
Date: 04/17/1998 21:43:51
Hello!

Today I updated my Amiga 3000 with current 160498 sources to use egcs.
All went well, until I tried to compile libc with my own COPTS=-O2 -m68060.
I got the following errors:

cc -O -O -m68060 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointe
r-arith  -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/src/lib/libc/incl
ude -D__DBINTERFACE_PRIVATE -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -c /us
r/src/lib/libc/gen/getloadavg.c
/var/tmp/cc07347a.s: Assembler messages:
/var/tmp/cc07347a.s:51: Error: "instruction/operands mismatch" -- Statement 'fdm
ovel a0@(d0:l),fp0' ignored
/var/tmp/cc07347a.s:54: Error: "instruction/operands mismatch" -- Statement 'fda
ddx fp1,fp0' ignored
/var/tmp/cc07347a.s:56: Error: "instruction/operands mismatch" -- Statement 'fdd
ivl a6@(-4),fp0' ignored
*** Error code 1

cc -O -O2 -m68060 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpoint
er-arith  -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/src/lib/libc/inc
lude -D__DBINTERFACE_PRIVATE -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -c /u
sr/src/lib/libc/arch/m68k/gen/frexp.c
/var/tmp/cc07577a.s: Assembler messages:
/var/tmp/cc07577a.s:15: Error: "instruction/operands mismatch" -- Statement 'fdm
oved a6@(8),fp1' ignored
*** Error code 1

cc -O -O2 -m68060 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpoint
er-arith  -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/src/lib/libc/inc
lude -D__DBINTERFACE_PRIVATE -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -c /s
rc/lib/libc/gmon/gmon.c
/var/tmp/cc17714a.s: Assembler messages:
/var/tmp/cc17714a.s:96: Error: "instruction/operands mismatch" -- Statement 'fdm
ovel d0,fp0' ignored
/var/tmp/cc17714a.s:99: Error: "instruction/operands mismatch" -- Statement 'fda
ddd #0r4.29496729600000000000e9,fp0' ignored
/var/tmp/cc17714a.s:101: Error: "instruction/operands mismatch" -- Statement 'fs
movex fp0,fp0' ignored
/var/tmp/cc17714a.s:102: Error: "instruction/operands mismatch" -- Statement 'fs
divl d1,fp0' ignored
/var/tmp/cc17714a.s:103: Error: "instruction/operands mismatch" -- Statement 'fs
muls #0r6.55360000000000000000e4,fp0' ignored
*** Error code 1

cc -O -O2 -m68060 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpoint
er-arith  -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/src/lib/libc/inc
lude -D__DBINTERFACE_PRIVATE -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -c /s
rc/lib/libc/quad/fixdfdi.c
/var/tmp/cc18211a.s: Assembler messages:
/var/tmp/cc18211a.s:14: Error: "instruction/operands mismatch" -- Statement 'fdm
oved a6@(8),fp0' ignored
/var/tmp/cc18211a.s:25: Error: "instruction/operands mismatch" -- Statement 'fdn
egx fp0,fp0' ignored
*** Error code 1

cc -O -O2 -m68060 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpoint
er-arith  -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/src/lib/libc/inc
lude -D__DBINTERFACE_PRIVATE -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -c /s
rc/lib/libc/quad/fixsfdi.c
/var/tmp/cc18240a.s: Assembler messages:
/var/tmp/cc18240a.s:14: Error: "instruction/operands mismatch" -- Statement 'fsm
oves a6@(8),fp0' ignored
/var/tmp/cc18240a.s:25: Error: "instruction/operands mismatch" -- Statement 'fsn
egx fp0,fp0' ignored
*** Error code 1

And several others (after lib/libc/quad/fixunsdfdi.c, 
lib/libc/quad/fixunssfdi.c, lib/libc/stdio/vfprintf.c, lib/libc/stdio/vfscanf.c,
lib/libc/stdlib/erand48.c I stoped). Using just COPTS=-O2 worked though.

So is this my fault or does egcs not support -m68060 that well yet? Any hints?

Thanx for help in advance!

Greets
      Thorsten