|
|
1.1 ! root 1: /* Definitions of target machine for GNU compiler. ! 2: DECstation (OSF/1 reference port with OSF/rose) version. ! 3: Copyright (C) 1991, 1992 Free Software Foundation, Inc. ! 4: ! 5: This file is part of GNU CC. ! 6: ! 7: GNU CC is free software; you can redistribute it and/or modify ! 8: it under the terms of the GNU General Public License as published by ! 9: the Free Software Foundation; either version 2, or (at your option) ! 10: any later version. ! 11: ! 12: GNU CC is distributed in the hope that it will be useful, ! 13: but WITHOUT ANY WARRANTY; without even the implied warranty of ! 14: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! 15: GNU General Public License for more details. ! 16: ! 17: You should have received a copy of the GNU General Public License ! 18: along with GNU CC; see the file COPYING. If not, write to ! 19: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ! 20: ! 21: #define DECSTATION ! 22: #define OSF_OS ! 23: ! 24: #define HALF_PIC_DEBUG TARGET_DEBUG_B_MODE ! 25: #define HALF_PIC_PREFIX "$Lp." ! 26: ! 27: #include "halfpic.h" ! 28: ! 29: #define WORD_SWITCH_TAKES_ARG(STR) \ ! 30: (DEFAULT_WORD_SWITCH_TAKES_ARG (STR) || !strcmp (STR, "pic-names")) ! 31: ! 32: #define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD" ! 33: ! 34: #define ASM_SPEC "\ ! 35: %{mmips-as: \ ! 36: %{pipe:%e:-pipe not supported} \ ! 37: %{EL} %{!EL:-EL} \ ! 38: %{EB: %e-EB not supported} \ ! 39: %{!mrnames: %{!.s:-nocpp} %{.s: %{cpp} %{nocpp}}} \ ! 40: %{mips1} %{mips2} %{mips3} \ ! 41: %{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3} \ ! 42: %{g} %{g0} %{g1} %{g2} %{g3} \ ! 43: %{K} %{Q}} \ ! 44: %{v*: -v} \ ! 45: %{G*}" ! 46: ! 47: #ifndef CROSS_COMPILE ! 48: #define ASM_FINAL_SPEC "\ ! 49: %{mmips-as: %{!mno-mips-tfile: \ ! 50: \n mips-tfile %{v*: -v} %{d*} \ ! 51: %{K: -I %b.o~} \ ! 52: %{!K: %{save-temps: -I %b.o~}} \ ! 53: %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %U.o} \ ! 54: %{.s:%i} %{!.s:%g.s}}}" ! 55: ! 56: #else /* CROSS_COMPILE */ ! 57: #define ASM_FINAL_SPEC "\ ! 58: %{mmips-as: %{mmips-tfile: \ ! 59: \n mips-tfile %{v*: -v} %{d*} \ ! 60: %{K: -I %b.o~} \ ! 61: %{!K: %{save-temps: -I %b.o~}} \ ! 62: %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %U.o} \ ! 63: %{.s:%i} %{!.s:%g.s}}}" ! 64: #endif ! 65: ! 66: #define CPP_SPEC "\ ! 67: %{.S: %{!ansi:%{!traditional:%{!traditional-cpp:%{!ftraditional: -traditional}}}}} \ ! 68: %{.S: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY} \ ! 69: -ULANGUAGE_C -U__LANGUAGE_C__} \ ! 70: %{.cc: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \ ! 71: %{.cxx: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \ ! 72: %{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \ ! 73: %{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \ ! 74: %{!.S: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}" ! 75: ! 76: #define LINK_SPEC "\ ! 77: %{G*} \ ! 78: %{mmips-as: \ ! 79: %{EL} %{!EL: -EL} \ ! 80: %{EB: %e-EB not supported} \ ! 81: %{mips1} %{mips2} %{mips3} \ ! 82: %{bestGnum}} \ ! 83: %{!mmips-as: \ ! 84: %{v*: -v} \ ! 85: %{!noshrlib: %{pic-none: -noshrlib} %{!pic-none: -warn_nopic}} \ ! 86: %{nostdlib} %{noshrlib} %{glue}}" ! 87: ! 88: #define LIB_SPEC "-lc" ! 89: ! 90: /* Define this macro meaning that `gcc' should find the library ! 91: `libgcc.a' by hand, rather than passing the argument `-lgcc' to ! 92: tell the linker to do the search. */ ! 93: ! 94: #define LINK_LIBGCC_SPECIAL 1 ! 95: ! 96: #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}" ! 97: ! 98: #define MACHINE_TYPE "DECstation with OSF/rose objects" ! 99: ! 100: #ifndef MD_EXEC_PREFIX ! 101: #define MD_EXEC_PREFIX "/usr/ccs/gcc/" ! 102: #endif ! 103: ! 104: #ifndef MD_STARTFILE_PREFIX ! 105: #define MD_STARTFILE_PREFIX "/usr/ccs/lib/" ! 106: #endif ! 107: ! 108: /* Turn on -mpic-extern by default. */ ! 109: #define CC1_SPEC "\ ! 110: %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \ ! 111: %{G*} \ ! 112: %{pic-none: -mno-half-pic} \ ! 113: %{pic-lib: -mhalf-pic} \ ! 114: %{pic-extern: -mhalf-pic} \ ! 115: %{pic-calls: -mhalf-pic} \ ! 116: %{pic-names*: -mhalf-pic} \ ! 117: %{!pic-*: -mhalf-pic}" ! 118: ! 119: /* Specify size_t, ptrdiff_t, and wchar_t types. */ ! 120: #define SIZE_TYPE "long unsigned int" ! 121: #define PTRDIFF_TYPE "int" ! 122: #define WCHAR_TYPE "unsigned int" ! 123: #define WCHAR_TYPE_SIZE BITS_PER_WORD ! 124: ! 125: /* OSF/1 uses gas, not the mips assembler. */ ! 126: #define TARGET_DEFAULT MASK_GAS ! 127: ! 128: /* OSF/rose uses stabs, not ECOFF. */ ! 129: #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG ! 130: ! 131: /* enable dwarf debugging for testing */ ! 132: #define DWARF_DEBUGGING_INFO ! 133: ! 134: /* Tell collect that the object format is OSF/rose. */ ! 135: #define OBJECT_FORMAT_ROSE ! 136: ! 137: /* Tell collect where the appropriate binaries are. */ ! 138: #define REAL_LD_FILE_NAME "/usr/ccs/gcc/gld" ! 139: #define REAL_NM_FILE_NAME "/usr/ccs/bin/nm" ! 140: #define REAL_STRIP_FILE_NAME "/usr/ccs/bin/strip" ! 141: ! 142: /* Default to -G 0 unless doing ecoff work. */ ! 143: #define MIPS_DEFAULT_GVALUE ((TARGET_MIPS_AS) ? 8 : 0) ! 144: ! 145: /* Use atexit for static constructors/destructors, instead of defining ! 146: our own exit function. */ ! 147: #define HAVE_ATEXIT ! 148: ! 149: /* Generate calls to memcpy, etc., not bcopy, etc. */ ! 150: #define TARGET_MEM_FUNCTIONS ! 151: ! 152: /* A C statement to output assembler commands which will identify ! 153: the object file as having been compiled with GNU CC (or another ! 154: GNU compiler). ! 155: ! 156: If you don't define this macro, the string `gcc2_compiled.:' is ! 157: output. This string is calculated to define a symbol which, on ! 158: BSD systems, will never be defined for any other reason. GDB ! 159: checks for the presence of this symbol when reading the symbol ! 160: table of an executable. ! 161: ! 162: On non-BSD systems, you must arrange communication with GDB in ! 163: some other fashion. If GDB is not used on your system, you can ! 164: define this macro with an empty body. ! 165: ! 166: On OSF/1, gcc2_compiled. confuses the kernel debugger, so don't ! 167: put it out. */ ! 168: ! 169: #define ASM_IDENTIFY_GCC(STREAM) ! 170: ! 171: /* Identify the front-end which produced this file. To keep symbol ! 172: space down, and not confuse kdb, only do this if the language is ! 173: not C. */ ! 174: ! 175: #define ASM_IDENTIFY_LANGUAGE(STREAM) \ ! 176: { \ ! 177: if (strcmp (lang_identify (), "c") != 0) \ ! 178: output_lang_identify (STREAM); \ ! 179: } ! 180: ! 181: #include "mips/mips.h"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.