#ifndef TARGET_ENDIAN_DEFAULT
#define TARGET_ENDIAN_DEFAULT MASK_BIG_ENDIAN
#endif
#ifndef MACHINE_TYPE
#if TARGET_ENDIAN_DEFAULT != 0
#define MACHINE_TYPE "NetBSD/mipseb ELF"
#else
#define MACHINE_TYPE "NetBSD/mipsel ELF"
#endif
#endif
#define TARGET_DEFAULT (MASK_GAS|MASK_ABICALLS)
#undef DBX_DEBUGGING_INFO
#define DBX_DEBUGGING_INFO
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
#include <mips/elf.h>
#undef OBJECT_FORMAT_COFF
#undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX
#undef US_SOFTWARE_GOFAST
#undef INIT_SUBTARGET_OPTABS
#define INIT_SUBTARGET_OPTABS
#include <netbsd.h>
#include <netbsd-elf.h>
#undef CPP_PREDEFINES
#if TARGET_ENDIAN_DEFAULT != 0
#define CPP_PREDEFINES \
"-D__NetBSD__ -D__ELF__ -D__mips__ -D__mips=1 -D__MIPSEB__ \
-D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ \
-Asystem=unix -Asystem=NetBSD -Amachine=mips"
#else
#define CPP_PREDEFINES \
"-D__NetBSD__ -D__ELF__ -D__mips__ -D__mips=1 -D__MIPSEL__ \
-D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ \
-Asystem=unix -Asystem=NetBSD -Amachine=mips"
#endif
#undef CPP_SPEC
#define CPP_SPEC \
"%(subtarget_cpp_size_spec) \
%{mips3:-U__mips -D__mips=3 -D__mips64} \
%{mips4:-U__mips -D__mips=4 -D__mips64} \
%{mips32:-U__mips -D__mips=32} \
%{mips64:-U__mips -D__mips=64 -D__mips64} \
%{mgp32:-U__mips64} %{mgp64:-D__mips64} \
%{mfp32:-D__mips_fpr=32} %{mfp64:-D__mips_fpr=64} \
%{!mfp32: \
%{!mfp64: \
%{mgp32:-D__mips_fpr=32} \
%{!mgp32: %(cpp_fpr_spec)}}} \
%{msingle-float: \
%{!msoft-float:-D__mips_single_float}} \
%{m4650: \
%{!msoft-float:-D__mips_single_float}} \
%{msoft-float:-D__mips_soft_float} \
%{mabi=eabi:-D__mips_eabi} \
%{mips16:%{!mno-mips16:-D__mips16}} \
%{EB:-U__MIPSEL__ -D__MIPSEB__} \
%{EL:-U__MIPSEB__ -D__MIPSEL__} \
%(subtarget_cpp_spec) "
#undef SUBTARGET_CPP_SIZE_SPEC
#define SUBTARGET_CPP_SIZE_SPEC \
"%{mlong64: \
%{!mips1: \
%{!mips2: \
%{!mips32:-D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long\\ int -D__LONG64}}}} \
%{!mlong64:-D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int -U__LONG64}"
#undef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
#undef LINK_SPEC
#define LINK_SPEC \
"%{assert*} %{R*} %{rpath*} \
%{EL:-m elf32lmip} \
%{EB:-m elf32bmip} \
%(endian_spec) \
%{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \
%{bestGnum} %{call_shared} %{no_archive} %{exact_version} \
%{shared:-shared} \
%{!shared: \
-dc -dp \
%{!nostdlib: \
%{!r*: \
%{!e*:-e __start}}} \
%{!static: \
%{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
%{static:-static}}"
#undef SUBTARGET_ASM_SPEC
#define SUBTARGET_ASM_SPEC \
"%{fpic:-KPIC} %{fPIC:-KPIC}"
#undef MIPS_DEFAULT_GVALUE
#define MIPS_DEFAULT_GVALUE 0
#undef SWITCH_TAKES_ARG
#define SWITCH_TAKES_ARG(CHAR) \
(DEFAULT_SWITCH_TAKES_ARG (CHAR) \
|| (CHAR) == 'R' \
|| (CHAR) == 'G')
#undef ASM_FINAL_SPEC
#undef SET_ASM_OP
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
#undef WCHAR_UNSIGNED
#define WCHAR_UNSIGNED 0
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
#undef WINT_TYPE
#define WINT_TYPE "int"