vr.h revision 169690
1234285Sdim/* Definitions of target machine for GNU compiler. 2234285Sdim NEC VR Series Processors 3234285Sdim Copyright (c) 2002, 2004, 2005 Free Software Foundation, Inc. 4234285Sdim Contributed by Red Hat, Inc. 5234285Sdim 6234285SdimThis file is part of GCC. 7234285Sdim 8234285SdimGCC is free software; you can redistribute it and/or modify 9234285Sdimit under the terms of the GNU General Public License as published by 10234285Sdimthe Free Software Foundation; either version 2, or (at your option) 11234285Sdimany later version. 12234285Sdim 13234285SdimGCC is distributed in the hope that it will be useful, 14234285Sdimbut WITHOUT ANY WARRANTY; without even the implied warranty of 15263509SdimMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16252723SdimGNU General Public License for more details. 17252723Sdim 18252723SdimYou should have received a copy of the GNU General Public License 19252723Sdimalong with GCC; see the file COPYING. If not, write to 20234285Sdimthe Free Software Foundation, 51 Franklin Street, Fifth Floor, 21234285SdimBoston, MA 02110-1301, USA. */ 22234285Sdim 23234285Sdim#define DEFAULT_VR_ARCH "mfix-vr4130" 24234285Sdim#define MIPS_ABI_DEFAULT ABI_EABI 25234285Sdim#define MIPS_MARCH_CONTROLS_SOFT_FLOAT 1 26234285Sdim#define MULTILIB_DEFAULTS \ 27234285Sdim { MULTILIB_ENDIAN_DEFAULT, \ 28234285Sdim MULTILIB_ABI_DEFAULT, \ 29234285Sdim DEFAULT_VR_ARCH } 30234285Sdim 31234285Sdim#define DRIVER_SELF_SPECS \ 32234285Sdim /* Enforce the default architecture. This is mostly for \ 33234285Sdim the assembler's benefit. */ \ 34234285Sdim "%{!march=*:%{!mfix-vr4120:%{!mfix-vr4130:" \ 35234285Sdim "-" DEFAULT_VR_ARCH "}}}", \ 36234285Sdim \ 37234285Sdim /* Make -mfix-vr4120 imply -march=vr4120. This cuts down \ 38234285Sdim on command-line tautology and makes it easier for t-vr to \ 39234285Sdim provide a -mfix-vr4120 multilib. */ \ 40234285Sdim "%{mfix-vr4120:%{!march=*:-march=vr4120}}", \ 41234285Sdim \ 42234285Sdim /* Same idea for -mfix-vr4130. */ \ 43234285Sdim "%{mfix-vr4130:%{!march=*:-march=vr4130}}", \ 44234285Sdim \ 45234285Sdim /* Make -mabi=eabi -mlong32 the default. */ \ 46234285Sdim "%{!mabi=*:-mabi=eabi %{!mlong*:-mlong32}}", \ 47234285Sdim \ 48234285Sdim /* Make sure -mlong64 multilibs are chosen when 64-bit longs \ 49234285Sdim are needed. */ \ 50234285Sdim "%{mabi=eabi:%{!mlong*:%{!mgp32:-mlong64}}}", \ 51234285Sdim \ 52234285Sdim /* Remove -mgp32 if it is redundant. */ \ 53234285Sdim "%{mabi=32:%<mgp32}" 54234285Sdim