1 /* Definitions for Intel 386 running Linux
2 * Copyright (C) 1992 Free Software Foundation, Inc.
4 * Written by H.J. Lu (hlu@eecs.wsu.edu)
6 * Linux is a POSIX.1 compatible UNIX clone for i386, which uses GNU
7 * stuffs as the native stuffs.
10 #if 0 /* The FSF has fixed the known bugs. But ....... */
12 /* Linux has a hacked gas 1.38.1, which can handle repz, repnz
20 /* This is tested by i386gas.h. */
21 #define YES_UNDERSCORES
23 #include "i386gstabs.h"
25 /* Specify predefined symbols in preprocessor. */
28 #define CPP_PREDEFINES "-Dunix -Di386 -Dlinux"
31 #define SIZE_TYPE "unsigned int"
34 #define PTRDIFF_TYPE "int"
37 #define WCHAR_TYPE "long int"
39 #undef WCHAR_TYPE_SIZE
40 #define WCHAR_TYPE_SIZE BITS_PER_WORD
45 /* Linux uses ctype from glibc.a. I am not sure how complete it is.
46 * For now, we play safe. It may change later.
49 #undef MULTIBYTE_CHARS
50 #define MULTIBYTE_CHARS 1
54 #define LIB_SPEC "%{g*:-lg} %{!g*:%{!p:%{!pg:-lc}}%{p:-lgmon -lc_p}%{pg:-lgmon -lc_p}}"
58 #undef GPLUSPLUS_INCLUDE_DIR
63 * For cross-compile, we just need to search `$(tooldir)/lib'
66 #define STARTFILE_SPEC \
67 "%{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"
70 *The cross-compile uses this.
72 #define GPLUSPLUS_INCLUDE_DIR TOOLDIR"/g++-include"
76 #define STARTFILE_SPEC \
77 "%{g*:crt0.o%s} %{!g*:%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}}"
80 *The native Linux system uses this.
82 #define GPLUSPLUS_INCLUDE_DIR "/usr/g++-include"