|
|
1.1 root 1: /* Definitions for Intel 386 running SunOS 4.0.
2: Copyright (C) 1988 Free Software Foundation, Inc.
3:
4: This file is part of GNU CC.
5:
6: GNU CC is distributed in the hope that it will be useful,
7: but WITHOUT ANY WARRANTY. No author or distributor
8: accepts responsibility to anyone for the consequences of using it
9: or for whether it serves any particular purpose or works at all,
10: unless he says so in writing. Refer to the GNU CC General Public
11: License for full details.
12:
13: Everyone is granted permission to copy, modify and redistribute
14: GNU CC, but only under the conditions described in the
15: GNU CC General Public License. A copy of this license is
16: supposed to have been given to you along with GNU CC so you
17: can know your rights and responsibilities. It should be in a
18: file named COPYING. Among other things, the copyright notice
19: and this notice must be preserved on all copies. */
20:
21:
22: #include "tm-i386.h"
23:
24: /* Use the Sun assembler syntax. */
25:
26: #include "tm-sun386.h"
27:
28: /* By default, target has a 80387. */
29:
30: #define TARGET_DEFAULT 1
31:
32: /* Use crt0.o as a startup file. */
33:
34: #define STARTFILE_SPEC \
35: "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
36:
37: #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
38:
39: /* Extra switches to give the assembler. */
40:
41: #define ASM_SPEC "-i386"
42:
43: /* Specify predefined symbols in preprocessor. */
44:
45: #define CPP_PREDEFINES "-Dunix -Di386 -Dsun386"
46:
47: /* Allow #ident and #sccs in preprocessor. */
48:
49: #define IDENT_DIRECTIVE
50: #define SCCS_DIRECTIVE
51:
52: /* We don't want to output SDB debugging information. */
53:
54: #undef SDB_DEBUGGING_INFO
55:
56: /* We want to output DBX debugging information. */
57:
58: #define DBX_DEBUGGING_INFO
59:
60: /* Implicit library calls should use memcpy, not bcopy, etc. */
61:
62: #define TARGET_MEM_FUNCTIONS
63:
64:
65: /* Define how to find the value returned by a function.
66: VALTYPE is the data type of the value (as a tree).
67: If the precise function being called is known, FUNC is its FUNCTION_DECL;
68: otherwise, FUNC is 0. */
69:
70: #define VALUE_REGNO(MODE) \
71: (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
72:
73: /* 1 if N is a possible register number for a function value. */
74:
75: #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
76:
77: /* This is partly guess. */
78:
79: #undef DBX_REGISTER_NUMBER
80: #define DBX_REGISTER_NUMBER(n) \
81: ((n) == 1 ? 2 : (n) == 2 ? 1 : (n) < 8 ? (n) : 12)
82:
83: /* Every debugger symbol must be in the text section.
84: Otherwise the assembler or the linker screws up. */
85:
86: #define DEBUG_SYMS_TEXT
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.