|
|
1.1 root 1: /* Definitions of target machine for GNU compiler. Iris version 5.
2: Copyright (C) 1993 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 TARGET_DEFAULT MASK_ABICALLS
21: #define ABICALLS_ASM_OP ".option pic2"
22:
23: #define OBJECT_FORMAT_ELF
24:
25: #include "mips/iris4.h"
26:
27: /* Specify size_t, ptrdiff_t, and wchar_t types. */
28: #undef SIZE_TYPE
29: #undef PTRDIFF_TYPE
30: #undef WCHAR_TYPE
31: #undef WCHAR_TYPE_SIZE
32:
33: #define SIZE_TYPE "unsigned int"
34: #define PTRDIFF_TYPE "int"
35: #define WCHAR_TYPE "long int"
36: #define WCHAR_TYPE_SIZE LONG_TYPE_SIZE
37:
38: /* ??? _MIPS_SIM and _MIPS_SZPTR should eventually depend on options when
39: options for them exist. */
40:
41: #undef CPP_PREDEFINES
42: #define CPP_PREDEFINES \
43: "-Dunix -Dmips -Dsgi -Dhost_mips -DMIPSEB -DSYSTYPE_SVR4 \
44: -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ \
45: -D_MIPS_SIM=_MIPS_SIM_ABI32 -D_MIPS_SZPTR=32 \
46: -Asystem(unix) -Asystem(svr4) -Acpu(mips) -Amachine(sgi)"
47:
48: #undef CPP_SPEC
49: #define CPP_SPEC "\
50: %{!ansi:-D__EXTENSIONS__ -D_SGI_SOURCE -D_LONGLONG} \
51: %{.S: -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
52: %{.cc: -D_LANGUAGE_C_PLUS_PLUS} \
53: %{.cxx: -D_LANGUAGE_C_PLUS_PLUS} \
54: %{.C: -D_LANGUAGE_C_PLUS_PLUS} \
55: %{.m: -D_LANGUAGE_OBJECTIVE_C} \
56: %{!.S: %{!.cc: %{!.cxx: %{!.C: %{!.m: -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}}}}}\
57: %{!mfp64: -D_MIPS_FPSET=16}%{mfp64: -D_MIPS_FPSET=32} \
58: %{mips1: -D_MIPS_ISA=_MIPS_ISA_MIPS1} \
59: %{mips2: -D_MIPS_ISA=_MIPS_ISA_MIPS2} \
60: %{mips3: -D_MIPS_ISA=_MIPS_ISA_MIPS3} \
61: %{!mips1: %{!mips2: %{!mips3: -D_MIPS_ISA=_MIPS_ISA_MIPS1}}} \
62: %{!mint64: -D_MIPS_SZINT=32}%{mint64: -D_MIPS_SZINT=64} \
63: %{!mlong64: -D_MIPS_SZLONG=32}%{mlong64: -D_MIPS_SZLONG=64}"
64:
65: #undef LINK_SPEC
66: #define LINK_SPEC "\
67: %{G*} \
68: %{!mgas: \
69: %{mips1} %{mips2} %{mips3} %{bestGnum} \
70: %{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} \
71: %{!shared: %{!non_shared: \
72: %{!call_shared: -call_shared -no_unresolved}}} \
73: -_SYSTYPE_SVR4 }"
74:
75: #undef LIB_SPEC
76: #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc crtn.o%s"
77:
78: /* We do not want to run mips-tfile! */
79: #undef ASM_FINAL_SPEC
80:
81: #undef OBJECT_FORMAT_COFF
82:
83: /* We don't support debugging info for now. */
84: #undef DBX_DEBUGGING_INFO
85: #undef SDB_DEBUGGING_INFO
86: #undef MIPS_DEBUGGING_INFO
87:
88: #undef MACHINE_TYPE
89: #define MACHINE_TYPE "SGI running IRIX 5.0"
90:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.