diff options
author | Richard Stallman <rms@gnu.org> | 1992-10-13 04:43:39 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-10-13 04:43:39 +0000 |
commit | 1cf549b1feb729537016c2eb062f654be4bf10ef (patch) | |
tree | 00e52c5b78ad7a95160fffca46372cdef0bd092d /gcc | |
parent | 20f92396c3d046c286440a3b75a4b7526fadf050 (diff) | |
download | gcc-1cf549b1feb729537016c2eb062f654be4bf10ef.zip gcc-1cf549b1feb729537016c2eb062f654be4bf10ef.tar.gz gcc-1cf549b1feb729537016c2eb062f654be4bf10ef.tar.bz2 |
entered into RCS
From-SVN: r2421
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/linux.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h new file mode 100644 index 0000000..8b467d6 --- /dev/null +++ b/gcc/config/i386/linux.h @@ -0,0 +1,81 @@ +/* Definitions for Intel 386 running Linux + * Copyright (C) 1992 Free Software Foundation, Inc. + * + * Written by H.J. Lu (hlu@eecs.wsu.edu) + * + * Linux is a POSIX.1 compatible UNIX clone for i386, which uses GNU + * stuffs as the native stuffs. + */ + +#if 0 /* The FSF has fixed the known bugs. But ....... */ + +/* Linux has a hacked gas 1.38.1, which can handle repz, repnz + * and fildll. + */ + +#define GOOD_GAS + +#endif + +#include "i386gas.h" + +/* Specify predefined symbols in preprocessor. */ + +#undef CPP_PREDEFINES +#define CPP_PREDEFINES "-Dunix -Di386 -Dlinux" + +#undef SIZE_TYPE +#define SIZE_TYPE "unsigned int" + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "int" + +#undef WCHAR_TYPE +#define WCHAR_TYPE "long int" + +#undef WCHAR_TYPE_SIZE +#define WCHAR_TYPE_SIZE BITS_PER_WORD + +#undef HAVE_ATEXIT +#define HAVE_ATEXIT + +/* Linux uses ctype from glibc.a. I am not sure how complete it is. + * For now, we play safe. It may change later. + */ +#if 0 +#undef MULTIBYTE_CHARS +#define MULTIBYTE_CHARS 1 +#endif + +#undef LIB_SPEC +#define LIB_SPEC "%{g*:-lg} %{!g*:%{!p:%{!pg:-lc}}%{p:-lgmon -lc_p}%{pg:-lgmon -lc_p}}" + + +#undef STARTFILE_SPEC +#undef GPLUSPLUS_INCLUDE_DIR + +#ifdef CROSS_COMPILE + +/* + * For cross-compile, we just need to search `$(tooldir)/lib' + */ + +#define STARTFILE_SPEC \ + "%{g*:crt0.o%s} %{!g*:%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}} -L"TOOLDIR"/lib" + +/* + *The cross-compile uses this. + */ +#define GPLUSPLUS_INCLUDE_DIR TOOLDIR"/g++-include" + +#else + +#define STARTFILE_SPEC \ + "%{g*:crt0.o%s} %{!g*:%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}}" + +/* + *The native Linux system uses this. + */ +#define GPLUSPLUS_INCLUDE_DIR "/usr/g++-include" + +#endif |