Re: gcc -m68060 option in kernel Makefiles
"David Brownlee" <[email protected]> Sat, 17 Jan 2009 23:30:05 +0000
| Newsgroups | gmane.os.netbsd.ports.atari,gmane.os.netbsd.ports.amiga |
|---|---|
| Message-ID | <[email protected]> |
From: T. Makinen <[email protected]> > On Sat, Jan 17, 2009 at 9:04 AM, Izumi Tsutsui <[email protected]> wrote: > > I'm afraid that 68030 FALCON (and also other 040 HADES and MILAN?) > > might have problems if compiler emits 060 specific instructions. > > I haven't experienced problems with kernel that has options M68060 with > 68030 FALCON caused by current CMACHFLAGS, so it seems that -m68060 > works for me. It looks like its setting -m68060 -Wa,-m68030, which ensured the assembler is running with 68030, which is safe, but misses the use of 68060 specific instructions for kernels with M68060 and not M68030. Its a pity gcc doesn't have an -m68030-60, as that would be perfect in one case... I think we should change Makefile.atari from if empty(IDENT:M-DM68060) CMACHFLAGS= -m68020 else CMACHFLAGS= -m68060 -Wa,-m68030 endif to something like: if !empty(IDENT:M-DM68060) if !empty(IDENT:M-DM68030) CMACHFLAGS= -m68020-60 else CMACHFLAGS= -m68060 endif else CMACHFLAGS= -m68030 endif