|
|
1.1 root 1: /* Definitions for Intel 386 running SCO Unix System V. */
2:
3:
4: /* Mostly it's like AT&T Unix System V. */
5:
6: #include "i386v.h"
7:
8: /* Use crt1.o as a startup file and crtn.o as a closing file. */
9:
10: #undef STARTFILE_SPEC
1.1.1.2 ! root 11: #define STARTFILE_SPEC "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}} crtbegin.o%s"
1.1 root 12:
1.1.1.2 ! root 13: #define ENDFILE_SPEC "crtend.o%s crtn.o%s"
1.1 root 14:
15: /* Library spec, including SCO international language support. */
16:
17: #undef LIB_SPEC
18: #define LIB_SPEC \
19: "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} %{scointl:libintl.a%s} -lc"
20:
21: /* Specify predefined symbols in preprocessor. */
22:
23: #undef CPP_PREDEFINES
24: #define CPP_PREDEFINES "-Dunix -Di386 -DM_UNIX -DM_I386 -DM_COFF -DM_WORDSWAP"
25:
1.1.1.2 ! root 26: #undef CPP_SPEC
1.1 root 27: #define CPP_SPEC "%{scointl:-DM_INTERNAT}"
28:
1.1.1.2 ! root 29: /* Use atexit for static destructors, instead of defining
! 30: our own exit function. */
! 31: #define HAVE_ATEXIT
! 32:
1.1 root 33: #if 0 /* Not yet certain whether this is needed. */
34: /* If no 387, use the general regs to return floating values,
35: since this system does not emulate the 80387. */
36:
37: #define VALUE_REGNO(MODE) \
38: ((TARGET_80387 && ((MODE) == SFmode || (MODE) == DFmode))
39: ? FIRST_FLOAT_REG : 0)
40:
41: #define HARD_REGNO_MODE_OK(REGNO, MODE) \
42: ((REGNO) < 2 ? 1 \
43: : (REGNO) < 4 ? 1 \
44: : (REGNO) >= 8 ? ((GET_MODE_CLASS (MODE) == MODE_FLOAT \
45: || GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT) \
46: && TARGET_80387 \
47: && GET_MODE_UNIT_SIZE (MODE) <= 8) \
48: : (MODE) != QImode)
49: #endif
1.1.1.2 ! root 50:
! 51: /* caller has to pop the extra argument passed to functions that return
! 52: structures. */
! 53:
! 54: #undef RETURN_POPS_ARGS
! 55: #define RETURN_POPS_ARGS(FUNTYPE,SIZE) \
! 56: (TREE_CODE (FUNTYPE) == IDENTIFIER_NODE ? 0 \
! 57: : (TARGET_RTD \
! 58: && (TYPE_ARG_TYPES (FUNTYPE) == 0 \
! 59: || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (FUNTYPE))) \
! 60: == void_type_node))) ? (SIZE) \
! 61: : 0)
! 62: /* On other 386 systems, the last line looks like this:
! 63: : (aggregate_value_p (FUNTYPE)) ? GET_MODE_SIZE (Pmode) : 0) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.