Port-atari archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc -m68060 option in kernel Makefiles



From: T. Makinen <tjamaloo%gmail.com@localhost>

> On Sat, Jan 17, 2009 at 9:04 AM, Izumi Tsutsui 
> <tsutsui%ceres.dti.ne.jp@localhost> 
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



Home | Main Index | Thread Index | Old Index