OSDN Git Service

* config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / vr.h
1 /* Definitions of target machine for GNU compiler.
2    NEC VR Series Processors
3    Copyright (c) 2002 Free Software Foundation, Inc.
4    Contributed by Red Hat, Inc.
5
6 This file is part of GCC.
7
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 2, or (at your option)
11 any later version.
12
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.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING.  If not, write to
20 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
21
22 #define DEFAULT_VR_ARCH "vr4130"
23 #define MIPS_ABI_DEFAULT ABI_EABI
24 #define MIPS_MARCH_CONTROLS_SOFT_FLOAT 1
25 #define MULTILIB_DEFAULTS \
26         { MULTILIB_ENDIAN_DEFAULT,              \
27           MULTILIB_ABI_DEFAULT,                 \
28           "march=" DEFAULT_VR_ARCH }
29
30 #define DRIVER_SELF_SPECS \
31         /* Make -mfix-vr4122-bugs imply -march=vr4120.  This cuts down  \
32            on command-line tautology and makes it easier for t-vr to    \
33            provide a -mfix-vr4122-bugs multilib.  */                    \
34         "%{mfix-vr4122-bugs:%{!march=*:-march=vr4120}}",                \
35                                                                         \
36         /* Make -mabi=eabi -mlong32 the default.  */                    \
37         "%{!mabi=*:-mabi=eabi %{!mlong*:-mlong32}}",                    \
38                                                                         \
39         /* Make sure -mlong64 multilibs are chosen when 64-bit longs    \
40            are needed.  */                                              \
41         "%{mabi=eabi:%{!mlong*:%{!mgp32:-mlong64}}}",                   \
42                                                                         \
43         /* Remove -mgp32 if it is redundant.  */                        \
44         "%{mabi=32:%<mgp32}",                                           \
45                                                                         \
46         /* Enforce the default architecture.  This is mostly for        \
47            the assembler's benefit.  */                                 \
48         "%{!march=*:-march=" DEFAULT_VR_ARCH "}"