|
|
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 "i386/sysv3.h" ! 7: ! 8: /* By default, target has a 80387, uses IEEE compatible arithmetic, ! 9: and returns float values in the 387, ie, ! 10: (TARGET_80387 | TARGET_FLOAT_RETURNS_IN_80387) ! 11: ! 12: SCO's software emulation of a 387 fails to handle the `fucomp' ! 13: opcode. fucomp is only used when generating IEEE compliant code. ! 14: So don't make TARGET_IEEE_FP default for SCO. */ ! 15: ! 16: #undef TARGET_DEFAULT ! 17: #define TARGET_DEFAULT 0201 ! 18: ! 19: /* Use crt1.o as a startup file and crtn.o as a closing file. */ ! 20: ! 21: #undef STARTFILE_SPEC ! 22: #define STARTFILE_SPEC \ ! 23: "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}} crtbegin.o%s" ! 24: ! 25: #define ENDFILE_SPEC "crtend.o%s crtn.o%s" ! 26: ! 27: /* Library spec, including SCO international language support. */ ! 28: ! 29: #undef LIB_SPEC ! 30: #define LIB_SPEC \ ! 31: "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} %{scointl:libintl.a%s} -lc" ! 32: ! 33: /* Specify predefined symbols in preprocessor. */ ! 34: ! 35: #undef CPP_PREDEFINES ! 36: #define CPP_PREDEFINES "-Dunix -Di386 -DM_UNIX -DM_I386 -DM_COFF -DM_WORDSWAP" ! 37: ! 38: #undef CPP_SPEC ! 39: #define CPP_SPEC "%{scointl:-DM_INTERNAT}" ! 40: ! 41: /* This spec is used for telling cpp whether char is signed or not. */ ! 42: ! 43: #undef SIGNED_CHAR_SPEC ! 44: #if DEFAULT_SIGNED_CHAR ! 45: #define SIGNED_CHAR_SPEC \ ! 46: "%{funsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}" ! 47: #else ! 48: #define SIGNED_CHAR_SPEC \ ! 49: "%{!fsigned-char:-D__CHAR_UNSIGNED__ -D_CHAR_UNSIGNED}" ! 50: #endif ! 51: ! 52: /* Use atexit for static destructors, instead of defining ! 53: our own exit function. */ ! 54: #define HAVE_ATEXIT ! 55: ! 56: /* Specify the size_t type. */ ! 57: #define SIZE_TYPE "unsigned int" ! 58: ! 59: #if 0 /* Not yet certain whether this is needed. */ ! 60: /* If no 387, use the general regs to return floating values, ! 61: since this system does not emulate the 80387. */ ! 62: ! 63: #undef VALUE_REGNO ! 64: #define VALUE_REGNO(MODE) \ ! 65: ((TARGET_80387 && ((MODE) == SFmode || (MODE) == DFmode)) ! 66: ? FIRST_FLOAT_REG : 0) ! 67: ! 68: #undef HARD_REGNO_MODE_OK ! 69: #define HARD_REGNO_MODE_OK(REGNO, MODE) \ ! 70: ((REGNO) < 2 ? 1 \ ! 71: : (REGNO) < 4 ? 1 \ ! 72: : FP_REGNO_P (REGNO) ? ((GET_MODE_CLASS (MODE) == MODE_FLOAT \ ! 73: || GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT) \ ! 74: && TARGET_80387 \ ! 75: && GET_MODE_UNIT_SIZE (MODE) <= 8) \ ! 76: : (MODE) != QImode) ! 77: #endif ! 78: ! 79: /* caller has to pop the extra argument passed to functions that return ! 80: structures. */ ! 81: ! 82: #undef RETURN_POPS_ARGS ! 83: #define RETURN_POPS_ARGS(FUNTYPE,SIZE) \ ! 84: (TREE_CODE (FUNTYPE) == IDENTIFIER_NODE ? 0 \ ! 85: : (TARGET_RTD \ ! 86: && (TYPE_ARG_TYPES (FUNTYPE) == 0 \ ! 87: || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (FUNTYPE))) \ ! 88: == void_type_node))) ? (SIZE) \ ! 89: : 0) ! 90: /* On other 386 systems, the last line looks like this: ! 91: : (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.