|
|
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:
23: #include "halfpic.h"
24:
25: #define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD"
26:
27: #define ASM_SPEC "\
28: %{mmips-as: \
29: %{pipe:%e:-pipe not supported} \
30: %{EL} %{!EL:-EL} \
31: %{EB: %e-EB not supported} \
32: %{!mrnames: -nocpp} \
33: %{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3} \
34: %{g} %{g0} %{g1} %{g2} %{g3} \
35: %{K} %{Q}} \
36: %{v*: -v} \
37: %{G*}"
38:
39: #define ASM_FINAL_SPEC "\
40: %{mmips-as: %{!mno-mips-tfile: \
41: \n mips-tfile %{v*: -v} %{d*} \
42: %{K: -I %b.o~} \
43: %{!K: %{save-temps: -I %b.o~}} \
44: %{c:%W{o*}%{!o*:-o %b.o}}%{!c:-o %b.o} \
45: %{.s:%i} %{!.s:%g.s}}}"
46:
47: #define CPP_SPEC "\
48: %{.S: -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
49: %{.cc: -D__LANGUAGE_C_PLUS_PLUS} \
50: %{.cxx: -D__LANGUAGE_C_PLUS_PLUS} \
51: %{.C: -D__LANGUAGE_C_PLUS_PLUS} \
52: %{.m: -D__LANGUAGE_OBJECTIVE_C} \
53: %{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
54:
55: #define LINK_SPEC "\
56: %{G*} \
57: %{mmips-as: \
58: %{EL} %{!EL: -EL} \
59: %{EB: %e-EB not supported} \
60: %{bestGnum}} \
61: %{!mmips-as: \
62: %{v*: -v} \
63: %{pic-none: -noshrlib} %{noshrlib} \
64: %{!pic-none: -warn_nopic} \
65: %{nostdlib} %{glue}}"
66:
67: /* For now, force static libraries instead of shared, but do so that
68: does not use -noshrlib, since the old linker does not provide it. */
69: #define LIB_SPEC "%{!pic-none: %{!pic-lib: -L/usr/ccs/lib }} -lc"
70:
71: #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
72:
73: #define MACHINE_TYPE "DECstation running OSF/1 with OSF/rose objects"
74:
75: #ifndef MD_EXEC_PREFIX
76: #define MD_EXEC_PREFIX "/usr/ccs/gcc/"
77: #endif
78:
79: #ifndef MD_STARTFILE_PREFIX
80: #define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
81: #endif
82:
83: /* Specify size_t, ptrdiff_t, and wchar_t types. */
84: #define SIZE_TYPE "long unsigned int"
85: #define PTRDIFF_TYPE "int"
86: #define WCHAR_TYPE "unsigned int"
87: #define WCHAR_TYPE_SIZE BITS_PER_WORD
88:
89: #if 0
90: #define WCHAR_TYPE ((TARGET_WC8) \
91: ? "unsigned char" \
92: : ((TARGET_WC16) \
93: ? "short unsigned int" \
94: : "long unsigned int"))
95: #endif
96:
97: #define TARGET_DEFAULT MASK_GAS
98:
99: /* OSF/rose uses stabs, not ECOFF. */
100: #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
101:
102: /* Tell collect that the object format is OSF/rose. */
103: #define OBJECT_FORMAT_ROSE
104:
105: /* Use atexit for static constructors/destructors, instead of defining
106: our own exit function. */
107: #define HAVE_ATEXIT
108:
109: #include "mips.h"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.