|
|
1.1 ! root 1: /* Definitions for Intel 386 running Linux ! 2: * Copyright (C) 1992 Free Software Foundation, Inc. ! 3: * ! 4: * Written by H.J. Lu ([email protected]) ! 5: * ! 6: * Linux is a POSIX.1 compatible UNIX clone for i386, which uses GNU ! 7: * stuffs as the native stuffs. ! 8: */ ! 9: ! 10: #if 0 /* The FSF has fixed the known bugs. But ....... */ ! 11: ! 12: /* Linux has a hacked gas 1.38.1, which can handle repz, repnz ! 13: * and fildll. ! 14: */ ! 15: ! 16: #define GOOD_GAS ! 17: ! 18: #endif ! 19: ! 20: /* This is tested by i386gas.h. */ ! 21: #define YES_UNDERSCORES ! 22: ! 23: #include "i386gstabs.h" ! 24: ! 25: /* Specify predefined symbols in preprocessor. */ ! 26: ! 27: #undef CPP_PREDEFINES ! 28: #define CPP_PREDEFINES "-Dunix -Di386 -Dlinux" ! 29: ! 30: #undef SIZE_TYPE ! 31: #define SIZE_TYPE "unsigned int" ! 32: ! 33: #undef PTRDIFF_TYPE ! 34: #define PTRDIFF_TYPE "int" ! 35: ! 36: #undef WCHAR_TYPE ! 37: #define WCHAR_TYPE "long int" ! 38: ! 39: #undef WCHAR_TYPE_SIZE ! 40: #define WCHAR_TYPE_SIZE BITS_PER_WORD ! 41: ! 42: #undef HAVE_ATEXIT ! 43: #define HAVE_ATEXIT ! 44: ! 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. ! 47: */ ! 48: #if 0 ! 49: #undef MULTIBYTE_CHARS ! 50: #define MULTIBYTE_CHARS 1 ! 51: #endif ! 52: ! 53: #undef LIB_SPEC ! 54: #define LIB_SPEC "%{g*:-lg} %{!g*:%{!p:%{!pg:-lc}}%{p:-lgmon -lc_p}%{pg:-lgmon -lc_p}}" ! 55: ! 56: ! 57: #undef STARTFILE_SPEC ! 58: #undef GPLUSPLUS_INCLUDE_DIR ! 59: ! 60: #ifdef CROSS_COMPILE ! 61: ! 62: /* ! 63: * For cross-compile, we just need to search `$(tooldir)/lib' ! 64: */ ! 65: ! 66: #define STARTFILE_SPEC \ ! 67: "%{g*:crt0.o%s -static} %{!g*:%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}} -L"TOOLDIR"/lib" ! 68: ! 69: /* ! 70: *The cross-compile uses this. ! 71: */ ! 72: #define GPLUSPLUS_INCLUDE_DIR TOOLDIR"/g++-include" ! 73: ! 74: #else ! 75: ! 76: #define STARTFILE_SPEC \ ! 77: "%{g*:crt0.o%s -static} %{!g*:%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}}" ! 78: ! 79: /* ! 80: *The native Linux system uses this. ! 81: */ ! 82: #define GPLUSPLUS_INCLUDE_DIR "/usr/g++-include" ! 83: ! 84: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.