mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-09-11 16:15:07 -04:00
48 lines
1.7 KiB
C
48 lines
1.7 KiB
C
/* Definitions of target machine for GNU compiler, for MIPS NetBSD systems.
|
|
Copyright (C) 1993, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004
|
|
Free Software Foundation, Inc.
|
|
|
|
This file is part of GCC.
|
|
|
|
GCC is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
any later version.
|
|
|
|
GCC is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with GCC; see the file COPYING. If not, write to
|
|
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
Boston, MA 02110-1301, USA. */
|
|
|
|
/* Force the default endianness and ABI flags onto the command line
|
|
in order to make the other specs easier to write. */
|
|
|
|
#undef DRIVER_SELF_SPECS
|
|
#define DRIVER_SELF_SPECS \
|
|
BASE_DRIVER_SELF_SPECS \
|
|
"%{!EB:%{!EL:%(endian_spec)}}", \
|
|
"%{!mabi=*: -mabi=n32}"
|
|
|
|
/* Define default target values. */
|
|
|
|
/* Provide a LINK_SPEC appropriate for a NetBSD/mips target.
|
|
This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for
|
|
the MIPS target. */
|
|
|
|
#undef LINK_SPEC
|
|
#define LINK_SPEC \
|
|
"%{mabi=64:-m elf64%{EB:b}%{EL:l}tsmip} \
|
|
%{mabi=32:-m elf32%{EB:b}%{EL:l}tsmip} \
|
|
%{mabi=o64:-m elf64%{EB:b}%{EL:l}tsmip} \
|
|
%{mabi=n32:-m elf32%{EB:b}%{EL:l}tsmipn32} \
|
|
%(endian_spec) \
|
|
%{G*} %{mips1} %{mips2} %{mips3} %{mips4} \
|
|
%{mips32} %{mips32r2} %{mips64} %{mips64r2} \
|
|
%{bestGnum} %{call_shared} %{no_archive} %{exact_version} \
|
|
%(netbsd_link_spec)"
|