1 /* Definitions of target machine for GNU compiler, for MIPS NetBSD systems.
2 Copyright (C) 1993, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004
3 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 2, or (at your option)
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 COPYING. If not, write to
19 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
22 /* Force the default endianness and ABI flags onto the command line
23 in order to make the other specs easier to write. */
25 #define DRIVER_SELF_SPECS \
26 "%{!EB:%{!EL:%(endian_spec)}}", \
27 "%{!mabi=*: -mabi=n32}"
29 /* Define default target values. */
32 #if TARGET_ENDIAN_DEFAULT != 0
33 #define MACHINE_TYPE "NetBSD/mips64eb ELF"
35 #define MACHINE_TYPE "NetBSD/mips64el ELF"
38 /* Provide a LINK_SPEC appropriate for a NetBSD/mips target.
39 This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for
44 "%{mabi=64:-m elf64%{EB:b}%{EL:l}tsmip} \
45 %{mabi=32:-m elf32%{EB:b}%{EL:l}tsmip} \
46 %{mabi=o64:-m elf64%{EB:b}%{EL:l}tsmip} \
47 %{mabi=n32:-m elf32%{EB:b}%{EL:l}tsmipn32} \
49 %{G*} %{mips1} %{mips2} %{mips3} %{mips4} \
50 %{mips32} %{mips32r2} %{mips64} %{mips64r2} \
51 %{bestGnum} %{call_shared} %{no_archive} %{exact_version} \
54 #undef LONG_DOUBLE_TYPE_SIZE
55 #define LONG_DOUBLE_TYPE_SIZE 64
57 #undef LIBGCC2_LONG_DOUBLE_TYPE_SIZE
58 #define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64