|
|
1.1 root 1: /* Definitions of target machine for GNU compiler. HP 9000/200 68000 version.
2: Copyright (C) 1987, 1991 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 2, 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
1.1.1.3 ! root 18: the Free Software Foundation, 59 Temple Place - Suite 330,
! 19: Boston, MA 02111-1307, USA. */
1.1 root 20:
21: #include "m68k/m68k.h"
22:
23: /* See m68k.h. 0 means 68000 with no 68881. */
24:
25: #define TARGET_DEFAULT 0
26:
27: /* Don't try using XFmode. */
28: #undef LONG_DOUBLE_TYPE_SIZE
29: #define LONG_DOUBLE_TYPE_SIZE 64
30:
31: /* Define __HAVE_68881 in preprocessor only if -m68881 is specified.
32: This will control the use of inline 68881 insns in certain macros.
33: Also inform the program which CPU this is for. */
34:
35: #define CPP_SPEC "%{m68881:-D__HAVE_68881__} \
36: %{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
37:
38: /* -m68020 requires special flags to the assembler. */
39:
40: #define ASM_SPEC \
41: "%{m68020:-mc68020}%{mc68020:-mc68020}%{!mc68020:%{!m68020:-mc68010}}"
42:
43: /* Names to predefine in the preprocessor for this target machine. */
44:
1.1.1.2 root 45: #define CPP_PREDEFINES "-Dmc68000 -Dmc68010 -Dhp200 -Dunix -Asystem(unix) -Asystem(bsd) -Acpu(m68k) -Amachine(m68k)"
1.1 root 46:
47: /* Link with libg.a when debugging, for dbx's sake. */
48:
49: #define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} "
50:
51: /* Alignment of field after `int : 0' in a structure. */
52:
53: #undef EMPTY_FIELD_BOUNDARY
54: #define EMPTY_FIELD_BOUNDARY 16
55:
56: /* Every structure or union's size must be a multiple of 2 bytes. */
57:
58: #define STRUCTURE_SIZE_BOUNDARY 16
59:
60: /* This is BSD, so it wants DBX format. */
61:
62: #define DBX_DEBUGGING_INFO
63:
64: /* Define subroutines to call to handle multiply, divide, and remainder.
65: These routines are built into the c-library on the hp200.
66: XXX What other routines from the c-library could we use?
67: The `*' prevents an underscore from being prepended by the compiler. */
68:
69: #define DIVSI3_LIBCALL "*ldiv"
70: #define UDIVSI3_LIBCALL "*uldiv"
71: #define MODSI3_LIBCALL "*lrem"
72: #define UMODSI3_LIBCALL "*ulrem"
73: #define MULSI3_LIBCALL "*lmul"
74: #define UMULSI3_LIBCALL "*ulmul"
75:
76: /* Don't default to pcc-struct-return, because gcc is the only compiler, and
77: we want to retain compatibility with older gcc versions. */
78: #define DEFAULT_PCC_STRUCT_RETURN 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.