1 /* Definitions for Motorola 680x0 running LynxOS.
2 Copyright (C) 1993, 94, 95, 96, 98, 1999 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 #include <m68k/m68k.h>
22 #include <m68k/coff.h>
24 #undef CTORS_SECTION_ASM_OP
25 #undef DTORS_SECTION_ASM_OP
26 #undef ASM_OUTPUT_DESTRUCTOR
27 #undef SELECT_RTX_SECTION
29 #define BSS_SECTION_ASM_OP ".bss"
31 #define ASM_LONG ".long"
35 /* See m68k.h. 7 means 68020 with 68881. */
37 #ifndef TARGET_DEFAULT
38 #define TARGET_DEFAULT (MASK_BITFIELD|MASK_68881|MASK_68020)
41 /* Names to predefine in the preprocessor for this target machine. */
44 #define CPP_PREDEFINES "-Dunix -Dmc68000 -DM68K -DLynx -DIBITS32 -Asystem(unix) -Asystem(lynx) -Acpu(m68k) -Amachine(m68k)"
46 /* Every structure or union's size must be a multiple of 2 bytes. */
48 #define STRUCTURE_SIZE_BOUNDARY 16
50 /* Lynx uses d2 and d3 as scratch registers. */
51 #undef CALL_USED_REGISTERS
52 #define CALL_USED_REGISTERS \
53 {1, 1, 1, 1, 0, 0, 0, 0, \
54 1, 1, 0, 0, 0, 0, 0, 1, \
55 1, 1, 0, 0, 0, 0, 0, 0 }
57 /* Return floating point values in a fp register. This make fp code a
58 little bit faster. It also makes -msoft-float code incompatible with
59 -m68881 code, so people have to be careful not to mix the two. */
61 #define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE))
64 #define LIBCALL_VALUE(MODE) \
65 gen_rtx_REG ((MODE), \
67 && ((MODE) == SFmode || (MODE) == DFmode \
68 || (MODE) == XFmode)) \
71 #undef FUNCTION_VALUE_REGNO_P
72 #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (TARGET_68881 && (N) == 16))
74 #undef NEEDS_UNTYPED_CALL
75 #define NEEDS_UNTYPED_CALL 1