Merged revision 156805 into branch.
[official-gcc.git] / gcc / config / mips / iris5.h
blobc3e86fe6afbd57f98986cbd96940d16e93443e7f
1 /* Definitions of target machine for GNU compiler. IRIX version 5.
2 Copyright (C) 1993, 1995, 1996, 1998, 2000,
3 2001, 2002, 2003, 2004, 2007, 2010 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #ifdef IRIX_USING_GNU_LD
22 #define IRIX_SUBTARGET_LINK_SPEC "-melf32bsmip"
23 #else
24 #define IRIX_SUBTARGET_LINK_SPEC "-_SYSTYPE_SVR4"
25 #endif
27 #undef STARTFILE_SPEC
28 #define STARTFILE_SPEC "\
29 %{!static: \
30 %{!shared:%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s libprof1.a%s}%{!p:crt1.o%s}}}} \
31 %{static: \
32 %{pg:gcrt1.o%s} \
33 %{!pg:%{p:/usr/lib/nonshared/mcrt1.o%s libprof1.a%s} \
34 %{!p:/usr/lib/nonshared/crt1.o%s}}} \
35 irix-crti.o%s crtbegin.o%s"
37 #undef LIB_SPEC
38 #define LIB_SPEC "%{!shared:%{p:-lprof1} %{pg:-lprof1} -lc}"
40 /* Avoid getting two warnings for libgcc.a everytime we link. */
41 #undef LIBGCC_SPEC
42 #define LIBGCC_SPEC \
43 SUBTARGET_DONT_WARN_UNUSED_SPEC " -lgcc " SUBTARGET_WARN_UNUSED_SPEC
45 #undef ENDFILE_SPEC
46 #define ENDFILE_SPEC "crtend.o%s irix-crtn.o%s %{!shared:crtn.o%s}"
48 #undef MACHINE_TYPE
49 #define MACHINE_TYPE "SGI running IRIX 5.x"