|
|
1.1 root 1: /* Definitions of target machine for GNU compiler. DECstation (OSF/1 with OSF/rose) version.
2: Copyright (C) 1991 Free Software Foundation, Inc.
3:
4: This file is part of GNU CC.
5:
6: GNU CC is free software; you can redistribute it and/or modify
7: it under the terms of the GNU General Public License as published by
8: the Free Software Foundation; either version 2, or (at your option)
9: any later version.
10:
11: GNU CC is distributed in the hope that it will be useful,
12: but WITHOUT ANY WARRANTY; without even the implied warranty of
13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: GNU General Public License for more details.
15:
16: You should have received a copy of the GNU General Public License
17: along with GNU CC; see the file COPYING. If not, write to
18: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19:
20: #define DECSTATION
21: #define OSF_OS
22:
1.1.1.3 ! root 23: #define HALF_PIC_DEBUG TARGET_DEBUG_B_MODE
! 24: #define HALF_PIC_PREFIX "$Lp."
! 25:
1.1 root 26: #include "halfpic.h"
27:
28: #define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD"
29:
30: #define ASM_SPEC "\
31: %{mmips-as: \
32: %{pipe:%e:-pipe not supported} \
33: %{EL} %{!EL:-EL} \
34: %{EB: %e-EB not supported} \
1.1.1.2 root 35: %{!mrnames: %{!.s:-nocpp} %{.s: %{cpp} %{nocpp}}} \
36: %{mips1} %{mips2} %{mips3} \
1.1 root 37: %{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3} \
38: %{g} %{g0} %{g1} %{g2} %{g3} \
39: %{K} %{Q}} \
40: %{v*: -v} \
41: %{G*}"
42:
43: #define ASM_FINAL_SPEC "\
44: %{mmips-as: %{!mno-mips-tfile: \
45: \n mips-tfile %{v*: -v} %{d*} \
46: %{K: -I %b.o~} \
47: %{!K: %{save-temps: -I %b.o~}} \
48: %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %b.o} \
49: %{.s:%i} %{!.s:%g.s}}}"
50:
51: #define CPP_SPEC "\
1.1.1.3 ! root 52: %{.S: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY} \
! 53: -ULANGUAGE_C -U__LANGUAGE_C__} \
! 54: %{.cc: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
! 55: %{.cxx: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
! 56: %{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
! 57: %{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \
! 58: %{!.S: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
1.1 root 59:
60: #define LINK_SPEC "\
61: %{G*} \
62: %{mmips-as: \
63: %{EL} %{!EL: -EL} \
64: %{EB: %e-EB not supported} \
1.1.1.2 root 65: %{mips1} %{mips2} %{mips3} \
1.1 root 66: %{bestGnum}} \
67: %{!mmips-as: \
68: %{v*: -v} \
1.1.1.3 ! root 69: %{!noshrlib: %{pic-none: -noshrlib} %{!pic-none: -warn_nopic}} \
! 70: %{nostdlib} %{noshrlib} %{glue}}"
! 71:
! 72: #define LIB_SPEC "-lc"
1.1 root 73:
74: #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
75:
76: #define MACHINE_TYPE "DECstation running OSF/1 with OSF/rose objects"
77:
78: #ifndef MD_EXEC_PREFIX
79: #define MD_EXEC_PREFIX "/usr/ccs/gcc/"
80: #endif
81:
82: #ifndef MD_STARTFILE_PREFIX
83: #define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
84: #endif
85:
86: /* Specify size_t, ptrdiff_t, and wchar_t types. */
87: #define SIZE_TYPE "long unsigned int"
88: #define PTRDIFF_TYPE "int"
89: #define WCHAR_TYPE "unsigned int"
90: #define WCHAR_TYPE_SIZE BITS_PER_WORD
91:
92: #if 0
93: #define WCHAR_TYPE ((TARGET_WC8) \
94: ? "unsigned char" \
95: : ((TARGET_WC16) \
96: ? "short unsigned int" \
97: : "long unsigned int"))
98: #endif
99:
100: #define TARGET_DEFAULT MASK_GAS
101:
102: /* OSF/rose uses stabs, not ECOFF. */
103: #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
104:
105: /* Tell collect that the object format is OSF/rose. */
106: #define OBJECT_FORMAT_ROSE
107:
108: /* Use atexit for static constructors/destructors, instead of defining
109: our own exit function. */
110: #define HAVE_ATEXIT
111:
1.1.1.3 ! root 112: /* Generate calls to memcpy, etc., not bcopy, etc. */
! 113: #define TARGET_MEM_FUNCTIONS
! 114:
! 115: /* A C statement to output assembler commands which will identify
! 116: the object file as having been compiled with GNU CC (or another
! 117: GNU compiler).
! 118:
! 119: If you don't define this macro, the string `gcc2_compiled.:' is
! 120: output. This string is calculated to define a symbol which, on
! 121: BSD systems, will never be defined for any other reason. GDB
! 122: checks for the presence of this symbol when reading the symbol
! 123: table of an executable.
! 124:
! 125: On non-BSD systems, you must arrange communication with GDB in
! 126: some other fashion. If GDB is not used on your system, you can
! 127: define this macro with an empty body.
! 128:
! 129: On OSF/1, gcc2_compiled. confuses the kernel debugger, so don't
! 130: put it out. */
! 131:
! 132: #define ASM_IDENTIFY_GCC(STREAM)
! 133:
1.1 root 134: #include "mips.h"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.