|
|
1.1 root 1: /* Definitions of target machine for GNU compiler.
2:
3: Citicorp/TTI Unicom PBB version
4: (using GAS and encapsulated COFF)
5:
6: Copyright (C) 1987, 1988, 1990 Free Software Foundation, Inc.
7:
8: This file is part of GNU CC.
9:
10: GNU CC is free software; you can redistribute it and/or modify
11: it under the terms of the GNU General Public License as published by
12: the Free Software Foundation; either version 2, or (at your option)
13: any later version.
14:
15: GNU CC is distributed in the hope that it will be useful,
16: but WITHOUT ANY WARRANTY; without even the implied warranty of
17: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18: GNU General Public License for more details.
19:
20: You should have received a copy of the GNU General Public License
21: along with GNU CC; see the file COPYING. If not, write to
22: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
23:
24: #include "m68k.h"
25:
26: /* Without STRUCTURE_SIZE_BOUNDARY, we can't ensure that structures are
27: aligned such that we can correctly extract bitfields from them.
28: Someone should check whether the usual compiler on this machine
29: provides the equivalent behavior of STRUCTURE_SIZE_BOUNDARY. */
30: /* Alternative solutions are (1) define PCC_BITFIELD_TYPE_MATTERS,
31: if that fits what the usual compiler does,
32: or disable the -m68000 and -mnobitfield options. */
33: #error This doesn't define STRUCTURE_SIZE_BOUNDARY
34:
35: /* See m68k.h. 5 means 68020 without 68881. */
36:
37: #define TARGET_DEFAULT 5
38:
39: /* Define __HAVE_68881__ in preprocessor if -m68881 is specified.
40: This will control the use of inline 68881 insns in certain macros. */
41:
42: #define CPP_SPEC "%{m68881:-D__HAVE_68881__}"
43:
44: /* Since some host machines will have to avoid generating code that
45: knows the format of floating point numbers on the tti68K,
46: we force all of them to avoid it when compiling for this
47: target, so that they will all generate exactly the same assembler
48: code as a result. Otherwise code cross-hosted from a Vax would
49: differ from native-compiled code. The performance penalty should
50: be minor in most cases. Note that we still do constant folding
51: in the host float format, so things might be a few bits off here
52: or there. */
53:
54: #define CAN_EXAMINE_68K_REAL_GUTS 0
55:
56: /* Names to predefine in the preprocessor for this target machine. */
57:
58: #define CPP_PREDEFINES "-Dm68k -Dunix -DUnicomPBB -Dmc68k -Dmc68020 -Dmc68k32"
59:
60: /* We want DBX format for use with gdb under encapsulated coff. */
61:
62: #define DBX_DEBUGGING_INFO
63:
64: /* Generate calls to memcpy, memcmp and memset. */
65:
66: #define TARGET_MEM_FUNCTIONS
67:
68: /* -m68000 requires special flags to the assembler. */
69:
70: #define ASM_SPEC \
71: "%{m68000:-mc68010}%{mc68000:-mc68010}"
72:
73: /* we use /lib/libp/lib* when profiling */
74:
75: #define LIB_SPEC "%{!shlib:%{p:-L/lib/libp} %{pg:-L/lib/libp} -lc}"
76:
77: /* shared libraries need to use crt1.o */
78:
79: /*#define STARTFILE_SPEC*/
80: #define STARTFILE_SPEC \
81: "%{!shlib:%{pg:mcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}\
82: %{shlib:crt1.o%s shlib.ifile%s} "
83:
84: /* cpp has to support a #sccs directive for the /usr/include files */
85:
86: #define SCCS_DIRECTIVE
87:
88: /* Define subroutines to call to handle multiply, divide, and remainder.
89: Use the subroutines that the 3b1's library provides.
90: The `*' prevents an underscore from being prepended by the compiler. */
91:
92: #ifdef notnow
93: #define DIVSI3_LIBCALL "*ldiv"
94: #define UDIVSI3_LIBCALL "*uldiv"
95: #define MODSI3_LIBCALL "*lrem"
96: #define UMODSI3_LIBCALL "*ulrem"
97: #define MULSI3_LIBCALL "*lmul"
98: #define UMULSI3_LIBCALL "*ulmul"
99: #endif
100:
101: #ifndef __GNUC__
102: #define USE_C_ALLOCA
103: #endif
104:
105: /* Return pointer values in both d0 and a0. */
106:
107: #undef FUNCTION_EXTRA_EPILOGUE
108: #define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE) \
109: { \
110: extern int current_function_returns_pointer; \
111: if ((current_function_returns_pointer) && \
112: ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode))\
113: fprintf (FILE, "\tmovel d0,a0\n"); \
114: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.