diff options
author | Richard Stallman <rms@gnu.org> | 1991-12-19 21:04:58 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1991-12-19 21:04:58 +0000 |
commit | bcca75d583a9d92e926e0b5d41f1a06cc6592451 (patch) | |
tree | 0c4d0b48512ce285a43a38910d81ab3d588703ec /gcc | |
parent | f76e1adf7ae0747d37fc03ddae7aff78e543fb0d (diff) | |
download | gcc-bcca75d583a9d92e926e0b5d41f1a06cc6592451.zip gcc-bcca75d583a9d92e926e0b5d41f1a06cc6592451.tar.gz gcc-bcca75d583a9d92e926e0b5d41f1a06cc6592451.tar.bz2 |
Initial revision
From-SVN: r125
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/sco.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gcc/config/i386/sco.h b/gcc/config/i386/sco.h new file mode 100644 index 0000000..04278d8 --- /dev/null +++ b/gcc/config/i386/sco.h @@ -0,0 +1,44 @@ +/* Definitions for Intel 386 running SCO Unix System V. */ + + +/* Mostly it's like AT&T Unix System V. */ + +#include "i386v.h" + +/* Use crt1.o as a startup file and crtn.o as a closing file. */ + +#undef STARTFILE_SPEC +#define STARTFILE_SPEC "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}" + +#define ENDFILE_SPEC "crtn.o%s" + +/* Library spec, including SCO international language support. */ + +#undef LIB_SPEC +#define LIB_SPEC \ + "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} %{scointl:libintl.a%s} -lc" + +/* Specify predefined symbols in preprocessor. */ + +#undef CPP_PREDEFINES +#define CPP_PREDEFINES "-Dunix -Di386 -DM_UNIX -DM_I386 -DM_COFF -DM_WORDSWAP" + +#define CPP_SPEC "%{scointl:-DM_INTERNAT}" + +#if 0 /* Not yet certain whether this is needed. */ +/* If no 387, use the general regs to return floating values, + since this system does not emulate the 80387. */ + +#define VALUE_REGNO(MODE) \ + ((TARGET_80387 && ((MODE) == SFmode || (MODE) == DFmode)) + ? FIRST_FLOAT_REG : 0) + +#define HARD_REGNO_MODE_OK(REGNO, MODE) \ + ((REGNO) < 2 ? 1 \ + : (REGNO) < 4 ? 1 \ + : (REGNO) >= 8 ? ((GET_MODE_CLASS (MODE) == MODE_FLOAT \ + || GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT) \ + && TARGET_80387 \ + && GET_MODE_UNIT_SIZE (MODE) <= 8) \ + : (MODE) != QImode) +#endif |