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

[MiNT] [GCC] Undefined __mc68000__ and __M68000_ with -m68020



Hello,

I had some problems compiling software (newlib and SDL) with -m68020 and
-m68020-60. The fact is that gcc for MiNT is configured to not add
-D__mc68000__ -D__M68000_ when configured to compile for 020 or higher.

newlib and SDL rely on the defines to check for a generic m68k platform,
and so fail to detect it, as only -D__M68020__ -D__mc68020__ is defined.

Well, I don't know for other m68k platforms, but I think that
-D__mc68000__ -D__M68000_ should be defined in all cases, and 020+
defines added if needed.

PS: Oh, gcc-4.0 is out.

-- 
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Spécialité: Développement, jeux