* config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
[official-gcc.git] / gcc / config / alpha / netbsd.h
blob2d7158ef65e33c7c6c1e46cc8dbc2ff8e097b693
1 /* Definitions of target machine for GNU compiler,
2 for Alpha NetBSD systems.
3 Copyright (C) 1998, 2002, 2003, 2004, 2005, 2007, 2011
4 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 #undef TARGET_DEFAULT
23 #define TARGET_DEFAULT (MASK_FPREGS | MASK_GAS)
25 #define TARGET_OS_CPP_BUILTINS() \
26 do { \
27 NETBSD_OS_CPP_BUILTINS_ELF(); \
28 } while (0)
31 /* NetBSD doesn't use the LANGUAGE* built-ins. */
32 #undef SUBTARGET_LANGUAGE_CPP_BUILTINS
33 #define SUBTARGET_LANGUAGE_CPP_BUILTINS() /* nothing */
36 /* Show that we need a GP when profiling. */
37 #undef TARGET_PROFILING_NEEDS_GP
38 #define TARGET_PROFILING_NEEDS_GP 1
41 /* Provide a CPP_SPEC appropriate for NetBSD/alpha. We use
42 this to pull in CPP specs that all NetBSD configurations need. */
44 #undef CPP_SPEC
45 #define CPP_SPEC NETBSD_CPP_SPEC
47 #undef EXTRA_SPECS
48 #define EXTRA_SPECS \
49 { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
50 { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \
51 { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC },
54 /* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. */
56 #undef LINK_SPEC
57 #define LINK_SPEC \
58 "%{G*} %{relax:-relax} \
59 %{O*:-O3} %{!O*:-O1} \
60 %(netbsd_link_spec)"
62 #define NETBSD_ENTRY_POINT "__start"
65 /* Provide an ENDFILE_SPEC appropriate for NetBSD/alpha ELF. Here we
66 add crtend.o, which provides part of the support for getting
67 C++ file-scope static objects deconstructed after exiting "main".
69 We also need to handle the GCC option `-ffast-math'. */
71 #undef ENDFILE_SPEC
72 #define ENDFILE_SPEC \
73 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfm%O%s} \
74 %(netbsd_endfile_spec)"
76 #define HAVE_ENABLE_EXECUTE_STACK