1169689Skan/* Definitions of target machine for GNU compiler.
2169689Skan   NEC VR Series Processors
3169689Skan   Copyright (c) 2002, 2004, 2005 Free Software Foundation, Inc.
4169689Skan   Contributed by Red Hat, Inc.
5169689Skan
6169689SkanThis file is part of GCC.
7169689Skan
8169689SkanGCC is free software; you can redistribute it and/or modify
9169689Skanit under the terms of the GNU General Public License as published by
10169689Skanthe Free Software Foundation; either version 2, or (at your option)
11169689Skanany later version.
12169689Skan
13169689SkanGCC is distributed in the hope that it will be useful,
14169689Skanbut WITHOUT ANY WARRANTY; without even the implied warranty of
15169689SkanMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16169689SkanGNU General Public License for more details.
17169689Skan
18169689SkanYou should have received a copy of the GNU General Public License
19169689Skanalong with GCC; see the file COPYING.  If not, write to
20169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor,
21169689SkanBoston, MA 02110-1301, USA.  */
22169689Skan
23169689Skan#define DEFAULT_VR_ARCH "mfix-vr4130"
24169689Skan#define MIPS_ABI_DEFAULT ABI_EABI
25169689Skan#define MIPS_MARCH_CONTROLS_SOFT_FLOAT 1
26169689Skan#define MULTILIB_DEFAULTS \
27169689Skan	{ MULTILIB_ENDIAN_DEFAULT,		\
28169689Skan	  MULTILIB_ABI_DEFAULT,			\
29169689Skan	  DEFAULT_VR_ARCH }
30169689Skan
31169689Skan#define DRIVER_SELF_SPECS \
32169689Skan	/* Enforce the default architecture.  This is mostly for	\
33169689Skan	   the assembler's benefit.  */					\
34169689Skan	"%{!march=*:%{!mfix-vr4120:%{!mfix-vr4130:"			\
35169689Skan	"-" DEFAULT_VR_ARCH "}}}",					\
36169689Skan									\
37169689Skan	/* Make -mfix-vr4120 imply -march=vr4120.  This cuts down	\
38169689Skan	   on command-line tautology and makes it easier for t-vr to	\
39169689Skan	   provide a -mfix-vr4120 multilib.  */				\
40169689Skan	"%{mfix-vr4120:%{!march=*:-march=vr4120}}",			\
41169689Skan									\
42169689Skan	/* Same idea for -mfix-vr4130.  */				\
43169689Skan	"%{mfix-vr4130:%{!march=*:-march=vr4130}}",			\
44169689Skan									\
45169689Skan	/* Make -mabi=eabi -mlong32 the default.  */			\
46169689Skan	"%{!mabi=*:-mabi=eabi %{!mlong*:-mlong32}}",			\
47169689Skan									\
48169689Skan	/* Make sure -mlong64 multilibs are chosen when	64-bit longs	\
49169689Skan	   are needed.  */						\
50169689Skan	"%{mabi=eabi:%{!mlong*:%{!mgp32:-mlong64}}}",			\
51169689Skan									\
52169689Skan	/* Remove -mgp32 if it is redundant.  */			\
53169689Skan	"%{mabi=32:%<mgp32}"
54