2002-08-22 Paolo Carlini <pcarlini@unitus.it>
[official-gcc.git] / gcc / config / i386 / scodbx.h
blob7da93053256f753448a706763d4927f9e08eef2d
1 /* Definitions for Intel 386 running SCO Unix System V,
2 using dbx-in-coff encapsulation.
3 Copyright (C) 1992, 1995, 1996, 1999 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)
10 any later version.
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, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 #include "i386/svr3dbx.h"
24 /* Overridden defines for SCO systems from sco.h. */
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)
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. */
34 #undef TARGET_SUBTARGET_DEFAULT
35 #define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_FLOAT_RETURNS)
37 /* Use crt1.o as a startup file and crtn.o as a closing file. */
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}}"
44 /* Library spec, including SCO international language support. */
46 #undef LIB_SPEC
47 #define LIB_SPEC \
48 "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} %{scointl:libintl.a%s} -lc"
50 /* Specify predefined symbols in preprocessor. */
52 #undef CPP_PREDEFINES
53 #define CPP_PREDEFINES "-Dunix -DM_UNIX -DM_I386 -DM_COFF -DM_WORDSWAP -Asystem=svr3"
55 #undef CPP_SPEC
56 #define CPP_SPEC "%(cpp_cpu) %{scointl:-DM_INTERNAT}"
58 /* This spec is used for telling cpp whether char is signed or not. */
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
69 /* caller has to pop the extra argument passed to functions that return
70 structures. */
72 #undef RETURN_POPS_ARGS
73 #define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) \
74 ((FUNDECL) && TREE_CODE (FUNDECL) == IDENTIFIER_NODE ? 0 \
75 : (TARGET_RTD \
76 && (TYPE_ARG_TYPES (FUNTYPE) == 0 \
77 || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (FUNTYPE))) \
78 == void_type_node))) ? (SIZE) \
79 : 0)
80 /* On other 386 systems, the last line looks like this:
81 : (aggregate_value_p (TREE_TYPE (FUNTYPE))) ? GET_MODE_SIZE (Pmode) : 0) */
83 /* Handle #pragma pack. */
84 #define HANDLE_SYSV_PRAGMA