1 /* Definitions for Intel 386 running SCO Unix System V,
2 using dbx-in-coff encapsulation.
3 Copyright (C) 1992 Free Software Foundation, Inc.
5 This file is part of GNU CC.
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)
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.
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
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 #include "i386/svr3dbx.h"
23 /* Overridden defines for SCO systems from sco.h. */
25 /* By default, target has a 80387, uses IEEE compatible arithmetic,
26 and returns float values in the 387, ie,
27 (TARGET_80387 | TARGET_FLOAT_RETURNS_IN_80387)
29 SCO's software emulation of a 387 fails to handle the `fucomp'
30 opcode. fucomp is only used when generating IEEE compliant code.
31 So don't make TARGET_IEEE_FP default for SCO. */
34 #define TARGET_DEFAULT 0201
36 /* Use crt1.o as a startup file and crtn.o as a closing file. */
39 #define STARTFILE_SPEC \
40 "%{!r:%{!z:svr3.ifile%s}%{z:svr3z.ifile%s}}\
41 %{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
43 /* Library spec, including SCO international language support. */
47 "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} %{scointl:libintl.a%s} -lc"
49 /* Specify predefined symbols in preprocessor. */
52 #define CPP_PREDEFINES "-Dunix -Di386 -DM_UNIX -DM_I386 -DM_COFF -DM_WORDSWAP -Asystem(unix) -Asystem(svr3) -Acpu(i386) -Amachine(i386)"
55 #define CPP_SPEC "%{scointl:-DM_INTERNAT}"
57 /* This spec is used for telling cpp whether char is signed or not. */
59 #undef SIGNED_CHAR_SPEC
60 #if DEFAULT_SIGNED_CHAR
61 #define SIGNED_CHAR_SPEC \
62 "%{funsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}"
64 #define SIGNED_CHAR_SPEC \
65 "%{!fsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}"
68 /* Use atexit for static destructors, instead of defining
69 our own exit function. */
72 /* caller has to pop the extra argument passed to functions that return
75 #undef RETURN_POPS_ARGS
76 #define RETURN_POPS_ARGS(FUNTYPE,SIZE) \
77 (TREE_CODE (FUNTYPE) == IDENTIFIER_NODE ? 0 \
79 && (TYPE_ARG_TYPES (FUNTYPE) == 0 \
80 || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (FUNTYPE))) \
81 == void_type_node))) ? (SIZE) \
83 /* On other 386 systems, the last line looks like this:
84 : (aggregate_value_p (TREE_TYPE (FUNTYPE))) ? GET_MODE_SIZE (Pmode) : 0) */
86 /* Use periods rather than dollar signs in special g++ assembler names. */
88 #define NO_DOLLAR_IN_LABEL