Merged revisions 143552,143554,143557,143560,143562,143564-143567,143570-143573,14357...
[official-gcc.git] / gcc / config / mips / vr.h
blobaa0d91a276ee49935bf9a42e89a5aff11765ef88
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)
11 any later version.
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 "mfix-vr4130"
23 #undef MIPS_ABI_DEFAULT
24 #define MIPS_ABI_DEFAULT ABI_EABI
25 #undef MULTILIB_DEFAULTS
26 #define MULTILIB_DEFAULTS \
27 { MULTILIB_ENDIAN_DEFAULT, \
28 MULTILIB_ABI_DEFAULT, \
29 DEFAULT_VR_ARCH }
31 #undef DRIVER_SELF_SPECS
32 #define DRIVER_SELF_SPECS \
33 /* Enforce the default architecture. This is mostly for \
34 the assembler's benefit. */ \
35 "%{!march=*:%{!mfix-vr4120:%{!mfix-vr4130:" \
36 "-" DEFAULT_VR_ARCH "}}}", \
38 /* Make -mfix-vr4120 imply -march=vr4120. This cuts down \
39 on command-line tautology and makes it easier for t-vr to \
40 provide a -mfix-vr4120 multilib. */ \
41 "%{mfix-vr4120:%{!march=*:-march=vr4120}}", \
43 /* Same idea for -mfix-vr4130. */ \
44 "%{mfix-vr4130:%{!march=*:-march=vr4130}}", \
46 /* Infer the default float setting from -march. */ \
47 MIPS_ARCH_FLOAT_SPEC, \
49 /* Make -mabi=eabi -mlong32 the default. */ \
50 "%{!mabi=*:-mabi=eabi %{!mlong*:-mlong32}}", \
52 /* Make sure -mlong64 multilibs are chosen when 64-bit longs \
53 are needed. */ \
54 "%{mabi=eabi:%{!mlong*:%{!mgp32:-mlong64}}}", \
56 /* Remove -mgp32 if it is redundant. */ \
57 "%{mabi=32:%<mgp32}", \
59 /* Configuration-independent MIPS rules. */ \
60 BASE_DRIVER_SELF_SPECS