1/* Definitions of target machine for GNU compiler.  IRIX version 5.
2   Copyright (C) 1993, 1995, 1996, 1998, 2000,
3   2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GCC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING.  If not, write to
19the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20Boston, MA 02110-1301, USA.  */
21
22#ifdef IRIX_USING_GNU_LD
23#define IRIX_SUBTARGET_LINK_SPEC "-melf32bsmip"
24#else
25#define IRIX_SUBTARGET_LINK_SPEC "-_SYSTYPE_SVR4"
26#endif
27
28#undef STARTFILE_SPEC
29#define STARTFILE_SPEC "\
30%{!static: \
31  %{!shared:%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s libprof1.a%s}%{!p:crt1.o%s}}}} \
32%{static: \
33  %{pg:gcrt1.o%s} \
34  %{!pg:%{p:/usr/lib/nonshared/mcrt1.o%s libprof1.a%s} \
35  %{!p:/usr/lib/nonshared/crt1.o%s}}} \
36irix-crti.o%s crtbegin.o%s"
37
38#undef LIB_SPEC
39#define LIB_SPEC "%{!shared:%{p:-lprof1} %{pg:-lprof1} -lc}"
40
41#undef ENDFILE_SPEC
42#define ENDFILE_SPEC "crtend.o%s irix-crtn.o%s %{!shared:crtn.o%s}"
43
44#undef MACHINE_TYPE
45#define MACHINE_TYPE "SGI running IRIX 5.x"
46