]> gcc.gnu.org Git - gcc.git/blame - gcc/config/mips/iris5.h
Replace with working version.
[gcc.git] / gcc / config / mips / iris5.h
CommitLineData
d666f182
RS
1/* Definitions of target machine for GNU compiler. Iris version 5.
2 Copyright (C) 1993 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU CC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
b8232327 20#define TARGET_DEFAULT MASK_ABICALLS
d666f182
RS
21#define ABICALLS_ASM_OP ".option pic2"
22
b8232327
JW
23#define OBJECT_FORMAT_ELF
24
d666f182
RS
25#include "mips/iris4.h"
26
b8232327
JW
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. */
d666f182
RS
40
41#undef CPP_PREDEFINES
b8232327
JW
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)"
6feec57d 47
b8232327
JW
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}"
6feec57d
RK
64
65#undef LINK_SPEC
b8232327
JW
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: %{!call_shared: -call_shared}}} \
72 -_SYSTYPE_SVR4 }"
73
74#undef LIB_SPEC
75#define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc crtn.o%s"
76
77/* We do not want to run mips-tfile! */
78#undef ASM_FINAL_SPEC
79
80#undef OBJECT_FORMAT_COFF
81
82#undef MACHINE_TYPE
83#define MACHINE_TYPE "SGI running IRIX 5.0"
84
This page took 0.044863 seconds and 5 git commands to generate.