|
|
1.1 root 1: /* Definitions for Intel 386 running SCO Unix System V,
2: using dbx-in-coff encapsulation.
1.1.1.4 ! root 3: Copyright (C) 1992, 1995 Free Software Foundation, Inc.
1.1 root 4:
5: This file is part of GNU CC.
6:
7: GNU CC is free software; you can redistribute it and/or modify
8: it under the terms of the GNU General Public License as published by
9: the Free Software Foundation; either version 2, or (at your option)
10: any later version.
11:
12: GNU CC is distributed in the hope that it will be useful,
13: but WITHOUT ANY WARRANTY; without even the implied warranty of
14: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: GNU General Public License for more details.
16:
17: You should have received a copy of the GNU General Public License
18: along with GNU CC; see the file COPYING. If not, write to
1.1.1.4 ! root 19: the Free Software Foundation, 59 Temple Place - Suite 330,
! 20: Boston, MA 02111-1307, USA. */
1.1 root 21:
22: #include "i386/svr3dbx.h"
23:
24: /* Overridden defines for SCO systems from sco.h. */
25:
26: /* By default, target has a 80387, uses IEEE compatible arithmetic,
27: and returns float values in the 387, ie,
28: (TARGET_80387 | TARGET_FLOAT_RETURNS_IN_80387)
29:
30: SCO's software emulation of a 387 fails to handle the `fucomp'
31: opcode. fucomp is only used when generating IEEE compliant code.
32: So don't make TARGET_IEEE_FP default for SCO. */
33:
34: #undef TARGET_DEFAULT
35: #define TARGET_DEFAULT 0201
36:
37: /* Use crt1.o as a startup file and crtn.o as a closing file. */
38:
39: #undef STARTFILE_SPEC
40: #define STARTFILE_SPEC \
41: "%{!r:%{!z:svr3.ifile%s}%{z:svr3z.ifile%s}}\
42: %{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
43:
44: /* Library spec, including SCO international language support. */
45:
46: #undef LIB_SPEC
47: #define LIB_SPEC \
48: "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} %{scointl:libintl.a%s} -lc"
49:
50: /* Specify predefined symbols in preprocessor. */
51:
52: #undef CPP_PREDEFINES
1.1.1.2 root 53: #define CPP_PREDEFINES "-Dunix -Di386 -DM_UNIX -DM_I386 -DM_COFF -DM_WORDSWAP -Asystem(unix) -Asystem(svr3) -Acpu(i386) -Amachine(i386)"
1.1 root 54:
55: #undef CPP_SPEC
56: #define CPP_SPEC "%{scointl:-DM_INTERNAT}"
57:
58: /* This spec is used for telling cpp whether char is signed or not. */
59:
60: #undef SIGNED_CHAR_SPEC
61: #if DEFAULT_SIGNED_CHAR
62: #define SIGNED_CHAR_SPEC \
63: "%{funsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}"
64: #else
65: #define SIGNED_CHAR_SPEC \
66: "%{!fsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}"
67: #endif
68:
69: /* Use atexit for static destructors, instead of defining
70: our own exit function. */
71: #define HAVE_ATEXIT
72:
73: /* caller has to pop the extra argument passed to functions that return
74: structures. */
75:
76: #undef RETURN_POPS_ARGS
1.1.1.4 ! root 77: #define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) \
1.1 root 78: (TREE_CODE (FUNTYPE) == IDENTIFIER_NODE ? 0 \
79: : (TARGET_RTD \
80: && (TYPE_ARG_TYPES (FUNTYPE) == 0 \
81: || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (FUNTYPE))) \
82: == void_type_node))) ? (SIZE) \
83: : 0)
84: /* On other 386 systems, the last line looks like this:
1.1.1.2 root 85: : (aggregate_value_p (TREE_TYPE (FUNTYPE))) ? GET_MODE_SIZE (Pmode) : 0) */
1.1 root 86:
87: /* Use periods rather than dollar signs in special g++ assembler names. */
88:
89: #define NO_DOLLAR_IN_LABEL
1.1.1.3 root 90:
91: /* Handle #pragma pack. */
92: #define HANDLE_SYSV_PRAGMA
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.