1 /* Definitions of target machine for GNU compiler.
2 NEC VR Series Processors
3 Copyright (c) 2002, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
4 Contributed by Red Hat, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 #define DEFAULT_VR_ARCH "march=4300"
24 #undef MULTILIB_ABI_DEFAULT
25 #define MULTILIB_ABI_DEFAULT "mabi=eabi"
27 #undef MULTILIB_DEFAULTS
28 #define MULTILIB_DEFAULTS \
29 { MULTILIB_ENDIAN_DEFAULT, \
30 MULTILIB_ABI_DEFAULT, \
33 #undef SUBTARGET_LINK_SPEC
34 #define SUBTARGET_LINK_SPEC \
35 "%{mabi=n32:%{EB:--oformat=elf32-nbigmips} %{!EB:--oformat=elf32-nlittlemips}}\
36 %{mabi=64:%{EB:--oformat=elf64-bigmips} %{!EB:--oformat=elf64-littlemips}}"
38 #undef DRIVER_SELF_SPECS
39 #define DRIVER_SELF_SPECS \
40 /* Enforce the default architecture. This is mostly for \
41 the assembler's benefit. */ \
42 "%{!march=*:%{!mfix-vr4120:%{!mfix-vr4130:" \
43 "-" DEFAULT_VR_ARCH "}}}", \
45 /* Same idea for -mfix-vr4130. */ \
46 "%{mfix-vr4130:%{!march=*:-march=vr4130}}", \
48 /* Infer the default float setting from -march. */ \
49 MIPS_ARCH_FLOAT_SPEC, \
51 /* Make -mabi=eabi -mlong32 the default. */ \
52 "%{!mabi=*:-mabi=eabi}", \
54 /* Remove -mgp32 if it is redundant. */ \
55 "%{mabi=32:%<mgp32}", \
57 /* Configuration-independent MIPS rules. */ \
58 BASE_DRIVER_SELF_SPECS