]> gcc.gnu.org Git - gcc.git/blame - gcc/config/alpha/netbsd.h
alpha-protos.h (alpha_output_mi_thunk_osf): Update signature to match target.h.
[gcc.git] / gcc / config / alpha / netbsd.h
CommitLineData
9d654bba
RH
1/* Definitions of target machine for GNU compiler,
2 for Alpha NetBSD systems.
f982f805 3 Copyright (C) 1998, 2002 Free Software Foundation, Inc.
9d654bba
RH
4
5This file is part of GNU CC.
6
7GNU CC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GNU CC is distributed in the hope that it will be useful,
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
18along with GNU CC; see the file COPYING. If not, write to
5f38fdda
JL
19the Free Software Foundation, 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */
9d654bba
RH
21
22#undef TARGET_DEFAULT
23#define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
24
12a41c22
NB
25#define TARGET_OS_CPP_BUILTINS() \
26 do { \
53a428b5
JT
27 NETBSD_OS_CPP_BUILTINS_ELF(); \
28 NETBSD_OS_CPP_BUILTINS_LP64(); \
12a41c22 29 } while (0)
9d654bba 30
55f49e3d
JT
31
32/* NetBSD doesn't use the LANGUAGE* built-ins. */
33#undef SUBTARGET_LANGUAGE_CPP_BUILTINS
34#define SUBTARGET_LANGUAGE_CPP_BUILTINS() /* nothing */
35
36
9d654bba 37/* Show that we need a GP when profiling. */
4f1c5cce
RH
38#undef TARGET_PROFILING_NEEDS_GP
39#define TARGET_PROFILING_NEEDS_GP 1
f982f805
JT
40
41
53a428b5
JT
42/* Provide a CPP_SUBTARGET_SPEC appropriate for NetBSD/alpha. We use
43 this to pull in CPP specs that all NetBSD configurations need. */
44
45#undef CPP_SUBTARGET_SPEC
46#define CPP_SUBTARGET_SPEC "%(netbsd_cpp_spec)"
47
48#undef SUBTARGET_EXTRA_SPECS
49#define SUBTARGET_EXTRA_SPECS \
854928a0
JT
50 { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
51 { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
52 { "netbsd_entry_point", NETBSD_ENTRY_POINT },
f982f805 53
f982f805 54
854928a0 55/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. */
f982f805 56
40039424 57#undef LINK_SPEC
854928a0
JT
58#define LINK_SPEC \
59 "%{G*} %{relax:-relax} \
60 %{O*:-O3} %{!O*:-O1} \
61 %(netbsd_link_spec)"
62
63#define NETBSD_ENTRY_POINT "__start"
f982f805
JT
64
65
66/* Provide an ENDFILE_SPEC appropriate for NetBSD/alpha ELF. Here we
67 add crtend.o, which provides part of the support for getting
68 C++ file-scope static objects deconstructed after exiting "main".
69
70 We also need to handle the GCC option `-ffast-math'. */
71
72#undef ENDFILE_SPEC
73#define ENDFILE_SPEC \
74 "%{ffast-math|funsafe-math-optimizations:crtfm%O%s} \
75 %{!shared:crtend%O%s} %{shared:crtendS%O%s}"
76
77
90e021a0
JT
78/* Attempt to enable execute permissions on the stack. */
79
80#define TRANSFER_FROM_TRAMPOLINE NETBSD_ENABLE_EXECUTE_STACK
81
82
f982f805
JT
83#undef TARGET_VERSION
84#define TARGET_VERSION fprintf (stderr, " (NetBSD/alpha ELF)");
This page took 0.875477 seconds and 5 git commands to generate.