]> gcc.gnu.org Git - gcc.git/blame_incremental - 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
1/* Definitions of target machine for GNU compiler,
2 for Alpha NetBSD systems.
3 Copyright (C) 1998, 2002 Free Software Foundation, Inc.
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
19the Free Software Foundation, 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */
21
22#undef TARGET_DEFAULT
23#define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
24
25#define TARGET_OS_CPP_BUILTINS() \
26 do { \
27 NETBSD_OS_CPP_BUILTINS_ELF(); \
28 NETBSD_OS_CPP_BUILTINS_LP64(); \
29 } while (0)
30
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
37/* Show that we need a GP when profiling. */
38#undef TARGET_PROFILING_NEEDS_GP
39#define TARGET_PROFILING_NEEDS_GP 1
40
41
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 \
50 { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
51 { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
52 { "netbsd_entry_point", NETBSD_ENTRY_POINT },
53
54
55/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. */
56
57#undef LINK_SPEC
58#define LINK_SPEC \
59 "%{G*} %{relax:-relax} \
60 %{O*:-O3} %{!O*:-O1} \
61 %(netbsd_link_spec)"
62
63#define NETBSD_ENTRY_POINT "__start"
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
78/* Attempt to enable execute permissions on the stack. */
79
80#define TRANSFER_FROM_TRAMPOLINE NETBSD_ENABLE_EXECUTE_STACK
81
82
83#undef TARGET_VERSION
84#define TARGET_VERSION fprintf (stderr, " (NetBSD/alpha ELF)");
This page took 0.024409 seconds and 5 git commands to generate.