|
|
1.1 root 1: /* Definitions for Sequent Intel 386.
2: Copyright (C) 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-i386.h"
21:
22: /* Use the BSD assembler syntax. */
23:
24: #include "tm-bsd386.h"
25:
26: /* By default, target has a 80387. */
27:
28: #define TARGET_DEFAULT 1
29:
30: /* Specify predefined symbols in preprocessor. */
31:
32: #define CPP_PREDEFINES "-Dunix -Di386 -Dsequent"
33:
1.1.1.3 ! root 34: /* Pass -Z and -ZO options to the linker. */
! 35:
! 36: #define LINK_SPEC "%{Z*}"
! 37:
1.1 root 38: /* We don't want to output SDB debugging information. */
39:
40: #undef SDB_DEBUGGING_INFO
41:
42: /* We want to output DBX debugging information. */
43:
44: #define DBX_DEBUGGING_INFO
45:
1.1.1.2 root 46: /* gcc order is ax, dx, cx, bx, si, di, bp, sp, st, st.
47: * dbx order is ax, dx, cx, st(0), st(1), bx, si, di, st(2), st(3),
48: * st(4), st(5), st(6), st(7), sp, bp */
49: #undef DBX_REGISTER_NUMBER
50: #define DBX_REGISTER_NUMBER(n) \
51: ((n) < 3 ? (n) : (n) < 6 ? (n) + 2 \
52: : (n) == 6 ? 15 : (n) == 7 ? 14 : 3)
53:
54: /* Prevent anything from being allocated in the register pair cx/bx,
55: since that would confuse GDB. */
56:
57: #undef HARD_REGNO_MODE_OK
58: #define HARD_REGNO_MODE_OK(REGNO, MODE) \
59: (hard_regno_mode_ok (REGNO, MODE) \
60: && ! (REGNO == 2 && GET_MODE_SIZE (MODE) > 4))
61:
1.1 root 62: /* Floating-point return values come in the FP register. */
63:
64: #define VALUE_REGNO(MODE) \
65: (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
66:
67: /* 1 if N is a possible register number for a function value. */
68:
69: #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
70:
71: /* Output assembler code to FILE to increment profiler label # LABELNO
72: for profiling a function entry. */
73:
74: #undef FUNCTION_PROFILER
75: #define FUNCTION_PROFILER(FILE, LABELNO) \
76: fprintf (FILE, "\tmovl $LP%d,%%eax\n\tcall mcount\n", (LABELNO));
77:
78: /* Assember pseudo-op for shared data segment. */
79: #define SHARED_SECTION_ASM_OP ".shdata"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.