1*c87b03e5Sespie /* Definitions for Motorola m68k running Linux-based GNU systems. 2*c87b03e5Sespie Copyright (C) 1995, 1996, 1997, 2002 Free Software Foundation, Inc. 3*c87b03e5Sespie 4*c87b03e5Sespie This file is part of GNU CC. 5*c87b03e5Sespie 6*c87b03e5Sespie GNU CC is free software; you can redistribute it and/or modify 7*c87b03e5Sespie it under the terms of the GNU General Public License as published by 8*c87b03e5Sespie the Free Software Foundation; either version 2, or (at your option) 9*c87b03e5Sespie any later version. 10*c87b03e5Sespie 11*c87b03e5Sespie GNU CC is distributed in the hope that it will be useful, 12*c87b03e5Sespie but WITHOUT ANY WARRANTY; without even the implied warranty of 13*c87b03e5Sespie MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*c87b03e5Sespie GNU General Public License for more details. 15*c87b03e5Sespie 16*c87b03e5Sespie You should have received a copy of the GNU General Public License 17*c87b03e5Sespie along with GNU CC; see the file COPYING. If not, write to 18*c87b03e5Sespie the Free Software Foundation, 59 Temple Place - Suite 330, 19*c87b03e5Sespie Boston, MA 02111-1307, USA. */ 20*c87b03e5Sespie 21*c87b03e5Sespie #include <m68k/m68k.h> 22*c87b03e5Sespie #include <linux-aout.h> 23*c87b03e5Sespie 24*c87b03e5Sespie /* 68020 with 68881 */ 25*c87b03e5Sespie #define TARGET_DEFAULT (MASK_BITFIELD|MASK_68881|MASK_68020) 26*c87b03e5Sespie 27*c87b03e5Sespie #define DBX_DEBUGGING_INFO 1 28*c87b03e5Sespie 29*c87b03e5Sespie #define ASM_COMMENT_START "|" 30*c87b03e5Sespie 31*c87b03e5Sespie #define CPP_PREDEFINES \ 32*c87b03e5Sespie "-Dunix -Dmc68000 -Dmc68020 -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k" 33*c87b03e5Sespie 34*c87b03e5Sespie #undef CPP_SPEC 35*c87b03e5Sespie #if TARGET_DEFAULT & MASK_68881 36*c87b03e5Sespie #define CPP_SPEC \ 37*c87b03e5Sespie "%{!msoft-float:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE}" 38*c87b03e5Sespie #else 39*c87b03e5Sespie #define CPP_SPEC \ 40*c87b03e5Sespie "%{m68881:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE}" 41*c87b03e5Sespie #endif 42*c87b03e5Sespie 43*c87b03e5Sespie #undef SUBTARGET_SWITCHES 44*c87b03e5Sespie #define SUBTARGET_SWITCHES {"ieee-fp", 0, \ 45*c87b03e5Sespie N_("Use IEEE math for fp comparisons") }, 46*c87b03e5Sespie 47*c87b03e5Sespie #undef ASM_SPEC 48*c87b03e5Sespie #define ASM_SPEC \ 49*c87b03e5Sespie "%{m68030} %{m68040} %{fpic:-k} %{fPIC:-k}" 50*c87b03e5Sespie 51*c87b03e5Sespie #undef LIB_SPEC 52*c87b03e5Sespie #if 1 53*c87b03e5Sespie /* We no longer link with libc_p.a or libg.a by default. If you want 54*c87b03e5Sespie to profile or debug the GNU/Linux C library, please add -lc_p or -ggdb 55*c87b03e5Sespie to LDFLAGS at the link time, respectively. */ 56*c87b03e5Sespie #define LIB_SPEC \ 57*c87b03e5Sespie "%{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}" 58*c87b03e5Sespie #else 59*c87b03e5Sespie #define LIB_SPEC \ 60*c87b03e5Sespie "%{mieee-fp:-lieee} %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} %{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}" 61*c87b03e5Sespie #endif 62*c87b03e5Sespie 63*c87b03e5Sespie /* We want to pass -v to linker */ 64*c87b03e5Sespie #undef LINK_SPEC 65*c87b03e5Sespie #define LINK_SPEC "-m m68klinux %{v:-dll-verbose}" 66*c87b03e5Sespie 67*c87b03e5Sespie #define SIZE_TYPE "unsigned int" 68*c87b03e5Sespie #define PTRDIFF_TYPE "int" 69*c87b03e5Sespie 70*c87b03e5Sespie /* Generate calls to memcpy, memcmp and memset. */ 71*c87b03e5Sespie #define TARGET_MEM_FUNCTIONS 72*c87b03e5Sespie 73*c87b03e5Sespie /* Don't default to pcc-struct-return, because gcc is the only compiler. */ 74*c87b03e5Sespie #undef PCC_STATIC_STRUCT_RETURN 75*c87b03e5Sespie #define DEFAULT_PCC_STRUCT_RETURN 0 76