OSDN Git Service

(CPP_PREDEFINES): Add system/cpu/machine assertions where missing.
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / scodbx.h
1 /* Definitions for Intel 386 running SCO Unix System V,
2    using dbx-in-coff encapsulation.
3    Copyright (C) 1992 Free Software Foundation, Inc.
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
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20
21 #include "i386/svr3dbx.h"
22
23 /* Overridden defines for SCO systems from sco.h. */
24
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)
28
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. */
32
33 #undef TARGET_DEFAULT
34 #define TARGET_DEFAULT 0201
35
36 /* Use crt1.o as a startup file and crtn.o as a closing file.  */
37
38 #undef STARTFILE_SPEC
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}}"
42
43 /* Library spec, including SCO international language support. */
44
45 #undef LIB_SPEC
46 #define LIB_SPEC \
47  "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} %{scointl:libintl.a%s} -lc"
48
49 /* Specify predefined symbols in preprocessor.  */
50
51 #undef CPP_PREDEFINES
52 #define CPP_PREDEFINES "-Dunix -Di386 -DM_UNIX -DM_I386 -DM_COFF -DM_WORDSWAP -Asystem(unix) -Asystem(svr3) -Acpu(i386) -Amachine(i386)"
53
54 #undef CPP_SPEC
55 #define CPP_SPEC "%{scointl:-DM_INTERNAT}"
56
57 /* This spec is used for telling cpp whether char is signed or not.  */
58
59 #undef SIGNED_CHAR_SPEC
60 #if DEFAULT_SIGNED_CHAR
61 #define SIGNED_CHAR_SPEC \
62  "%{funsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}"
63 #else
64 #define SIGNED_CHAR_SPEC \
65  "%{!fsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}"
66 #endif
67
68 /* Use atexit for static destructors, instead of defining
69    our own exit function.  */
70 #define HAVE_ATEXIT
71
72 /* caller has to pop the extra argument passed to functions that return
73    structures. */
74
75 #undef RETURN_POPS_ARGS
76 #define RETURN_POPS_ARGS(FUNTYPE,SIZE)   \
77   (TREE_CODE (FUNTYPE) == IDENTIFIER_NODE ? 0                   \
78    : (TARGET_RTD                                                \
79       && (TYPE_ARG_TYPES (FUNTYPE) == 0                         \
80           || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (FUNTYPE))) \
81               == void_type_node))) ? (SIZE)                     \
82    : 0)
83 /* On other 386 systems, the last line looks like this:
84    : (aggregate_value_p (TREE_TYPE (FUNTYPE))) ? GET_MODE_SIZE (Pmode) : 0)  */
85
86 /* Use periods rather than dollar signs in special g++ assembler names.  */
87
88 #define NO_DOLLAR_IN_LABEL