]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/alpha/netbsd.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / alpha / netbsd.h
CommitLineData
9d654bba
RH
1/* Definitions of target machine for GNU compiler,
2 for Alpha NetBSD systems.
a5544970 3 Copyright (C) 1998-2019 Free Software Foundation, Inc.
9d654bba 4
7ec022b2 5This file is part of GCC.
9d654bba 6
7ec022b2 7GCC is free software; you can redistribute it and/or modify
9d654bba 8it under the terms of the GNU General Public License as published by
2f83c7d6 9the Free Software Foundation; either version 3, or (at your option)
9d654bba
RH
10any later version.
11
7ec022b2 12GCC is distributed in the hope that it will be useful,
9d654bba
RH
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
2f83c7d6
NC
18along with GCC; see the file COPYING3. If not see
19<http://www.gnu.org/licenses/>. */
9d654bba 20
12a41c22
NB
21#define TARGET_OS_CPP_BUILTINS() \
22 do { \
53a428b5 23 NETBSD_OS_CPP_BUILTINS_ELF(); \
12a41c22 24 } while (0)
9d654bba 25
55f49e3d
JT
26
27/* NetBSD doesn't use the LANGUAGE* built-ins. */
28#undef SUBTARGET_LANGUAGE_CPP_BUILTINS
29#define SUBTARGET_LANGUAGE_CPP_BUILTINS() /* nothing */
30
31
9d654bba 32/* Show that we need a GP when profiling. */
4f1c5cce
RH
33#undef TARGET_PROFILING_NEEDS_GP
34#define TARGET_PROFILING_NEEDS_GP 1
f982f805
JT
35
36
f326fd7a 37/* Provide a CPP_SPEC appropriate for NetBSD/alpha. We use
53a428b5
JT
38 this to pull in CPP specs that all NetBSD configurations need. */
39
f326fd7a
RH
40#undef CPP_SPEC
41#define CPP_SPEC NETBSD_CPP_SPEC
53a428b5 42
f326fd7a
RH
43#undef EXTRA_SPECS
44#define EXTRA_SPECS \
854928a0 45 { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
adde288a
JT
46 { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \
47 { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC },
f982f805 48
f982f805 49
854928a0 50/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. */
f982f805 51
40039424 52#undef LINK_SPEC
854928a0
JT
53#define LINK_SPEC \
54 "%{G*} %{relax:-relax} \
55 %{O*:-O3} %{!O*:-O1} \
56 %(netbsd_link_spec)"
57
58#define NETBSD_ENTRY_POINT "__start"
f982f805
JT
59
60
61/* Provide an ENDFILE_SPEC appropriate for NetBSD/alpha ELF. Here we
62 add crtend.o, which provides part of the support for getting
63 C++ file-scope static objects deconstructed after exiting "main".
64
65 We also need to handle the GCC option `-ffast-math'. */
66
67#undef ENDFILE_SPEC
68#define ENDFILE_SPEC \
0691dde9 69 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfm%O%s} \
adde288a 70 %(netbsd_endfile_spec)"
f982f805 71
10e48e39 72#define HAVE_ENABLE_EXECUTE_STACK