]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/mips/vr.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / mips / vr.h
CommitLineData
5ce6f47b
EC
1/* Definitions of target machine for GNU compiler.
2 NEC VR Series Processors
a945c346 3 Copyright (C) 2002-2024 Free Software Foundation, Inc.
5ce6f47b
EC
4 Contributed by Red Hat, Inc.
5
7ec022b2 6This file is part of GCC.
5ce6f47b 7
7ec022b2 8GCC is free software; you can redistribute it and/or modify
5ce6f47b 9it under the terms of the GNU General Public License as published by
2f83c7d6 10the Free Software Foundation; either version 3, or (at your option)
5ce6f47b
EC
11any later version.
12
7ec022b2 13GCC is distributed in the hope that it will be useful,
5ce6f47b
EC
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
2f83c7d6
NC
19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
5ce6f47b 21
0ac40e7a 22#define DEFAULT_VR_ARCH "mfix-vr4130"
7f75ae86 23#undef MULTILIB_DEFAULTS
5ce6f47b 24#define MULTILIB_DEFAULTS \
c1077e1e
RS
25 { MULTILIB_ENDIAN_DEFAULT, \
26 MULTILIB_ABI_DEFAULT, \
0ac40e7a 27 DEFAULT_VR_ARCH }
adadd183 28
7f75ae86 29#undef DRIVER_SELF_SPECS
adadd183 30#define DRIVER_SELF_SPECS \
0ac40e7a
RS
31 /* Enforce the default architecture. This is mostly for \
32 the assembler's benefit. */ \
33 "%{!march=*:%{!mfix-vr4120:%{!mfix-vr4130:" \
34 "-" DEFAULT_VR_ARCH "}}}", \
35 \
74b9f2d5 36 /* Make -mfix-vr4120 imply -march=vr4120. This cuts down \
c1077e1e 37 on command-line tautology and makes it easier for t-vr to \
74b9f2d5
RS
38 provide a -mfix-vr4120 multilib. */ \
39 "%{mfix-vr4120:%{!march=*:-march=vr4120}}", \
c1077e1e 40 \
0ac40e7a
RS
41 /* Same idea for -mfix-vr4130. */ \
42 "%{mfix-vr4130:%{!march=*:-march=vr4130}}", \
43 \
7d8bed7b
RS
44 /* Infer the default float setting from -march. */ \
45 MIPS_ARCH_FLOAT_SPEC, \
46 \
c1077e1e
RS
47 /* Make -mabi=eabi -mlong32 the default. */ \
48 "%{!mabi=*:-mabi=eabi %{!mlong*:-mlong32}}", \
49 \
50 /* Make sure -mlong64 multilibs are chosen when 64-bit longs \
51 are needed. */ \
52 "%{mabi=eabi:%{!mlong*:%{!mgp32:-mlong64}}}", \
53 \
54 /* Remove -mgp32 if it is redundant. */ \
7f75ae86
CM
55 "%{mabi=32:%<mgp32}", \
56 \
57 /* Configuration-independent MIPS rules. */ \
58 BASE_DRIVER_SELF_SPECS