|
|
1.1 root 1: /* Definitions of target machine for GNU compiler, for a 3b1 using GAS.
2: Copyright (C) 1987, 1988 Free Software Foundation, Inc.
3:
4: This file is part of GNU CC.
5:
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 1, or (at your option)
9: any later version.
10:
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.
15:
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, 675 Mass Ave, Cambridge, MA 02139, USA. */
19:
20: #include "tm-m68k.h"
21:
22: /* See tm-m68k.h. 0 means 68000 with no 68881. */
23: #define TARGET_DEFAULT 0
24:
25: /* Define __HAVE_68881 in preprocessor only if -m68881 is specified.
26: This will control the use of inline 68881 insns in certain macros.
27: Also inform the program which CPU this is for. */
28: #define CPP_SPEC "%{m68881:-D__HAVE_68881__} \
29: %{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
30:
31: /* -m68020 requires special flags to the assembler. */
32: #define ASM_SPEC \
33: "%{m68020:-mc68020}%{mc68020:-mc68020}%{!mc68020:%{!m68020:-mc68010}}"
34:
35: /* Names to predefine in the preprocessor for this target machine. */
36: #define CPP_PREDEFINES "-Dmc68000 -Dmc68k -Dunix -Dunixpc"
37:
38: /* This is (not really) BSD, so (but) it wants DBX format. */
39: #define DBX_DEBUGGING_INFO
40:
41: /* Brain damage. */
42: #define SCCS_DIRECTIVE
43:
44: /* Specify how to pad function arguments.
45: Value should be `upward', `downward' or `none'.
46: Same as the default, except no padding for large or variable-size args. */
47: #define FUNCTION_ARG_PADDING(mode, size) \
48: (((mode) == BLKmode \
49: ? (GET_CODE (size) == CONST_INT \
50: && INTVAL (size) < PARM_BOUNDARY / BITS_PER_UNIT) \
51: : GET_MODE_BITSIZE (mode) < PARM_BOUNDARY) \
52: ? downward : none)
53:
54: /* Override part of the obstack macros. */
55: #define __PTR_TO_INT(P) ((int)(P))
56: #define __INT_TO_PTR(P) ((char *)(P))
57:
58: /* Every structure or union's size must be a multiple of 2 bytes. */
59: #define STRUCTURE_SIZE_BOUNDARY 16
60:
61: /* Generate calls to memcpy, memcmp and memset. */
62: #define TARGET_MEM_FUNCTIONS
63:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.