--- ../gcc_cvs/gcc/gcc/config/m68k/linux.h 2003-11-29 08:38:11.000000000 +0530 +++ ../gcc-3.4.0/gcc/config/m68k/linux.h 2004-10-14 19:28:15.000000000 +0530 @@ -83,15 +83,39 @@ #define WCHAR_TYPE_SIZE BITS_PER_WORD /* Target OS builtins. */ + #define TARGET_OS_CPP_BUILTINS() \ do \ { \ LINUX_TARGET_OS_CPP_BUILTINS(); \ - builtin_define_std ("mc68000"); \ - builtin_define_std ("mc68020"); \ + if ( TARGET_CFV4E ) \ + { \ + builtin_define_std ("mcfv4e"); \ + } \ + else \ + { \ + builtin_define_std ("mc68000"); \ + builtin_define_std ("mc68020"); \ + } \ } \ while (0) - +/* +#define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + LINUX_TARGET_OS_CPP_BUILTINS(); \ + builtin_define_std ("mc68000"); \ + builtin_define_std ("mc68020"); \ + } \ + while (0) +#define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + LINUX_TARGET_OS_CPP_BUILTINS(); \ + builtin_define_std ("mcfv4e"); \ + } \ + while (0) +*/ #define TARGET_OBJFMT_CPP_BUILTINS() \ do \ { \ @@ -102,18 +126,20 @@ #undef CPP_SPEC #if TARGET_DEFAULT & MASK_68881 #define CPP_SPEC \ - "%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} %{!msoft-float:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" +"%{m68020:-Dmc68020 -D__mc68020__ %{!msoft-float:-D__HAVE_68881 }}%{mcfv4e:-D__mcoldfire__ -Dmcoldfire -D__HAVE_FPU__ }%{mcfv4:-D__mcoldfire__ -Dmcoldfire }%{!m68020:%{!mcfv4:%{!mcfv4e:-D__mcoldfire__ -Dmcoldfire -D__HAVE_FPU__ }}}%{fPIC: -D__PIC__ -D__pic__ }%{fpic: -D__PIC__ -D__pic__ }%{posix:-D_POSIX_SOURCE }" #else #define CPP_SPEC \ - "%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} %{m68881:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" + "%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__ } %{m68881:-D__HAVE_68881__ } %{posix:-D_POSIX_SOURCE } %{pthread:-D_REENTRANT }" #endif + + /* We override the ASM_SPEC from svr4.h because we must pass -m68040 down to the assembler. */ #undef ASM_SPEC #define ASM_SPEC \ "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} \ -%{m68040} %{m68060:-m68040}" +%{m68040} %{m68060:-m68040} %{mcfv4e} " /* Provide a LINK_SPEC appropriate for GNU/Linux. Here we provide support for the special GCC options -static and -shared, which allow us to