1 /* Definitions of target machine for GNU compiler,
2 for Alpha NetBSD systems.
3 Copyright (C) 1998, 2002 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
23 #define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
25 #define TARGET_OS_CPP_BUILTINS() \
27 NETBSD_OS_CPP_BUILTINS_ELF(); \
28 NETBSD_OS_CPP_BUILTINS_LP64(); \
32 /* NetBSD doesn't use the LANGUAGE* built-ins. */
33 #undef SUBTARGET_LANGUAGE_CPP_BUILTINS
34 #define SUBTARGET_LANGUAGE_CPP_BUILTINS() /* nothing */
37 /* Show that we need a GP when profiling. */
38 #undef TARGET_PROFILING_NEEDS_GP
39 #define TARGET_PROFILING_NEEDS_GP 1
42 /* Provide a CPP_SUBTARGET_SPEC appropriate for NetBSD/alpha. We use
43 this to pull in CPP specs that all NetBSD configurations need. */
45 #undef CPP_SUBTARGET_SPEC
46 #define CPP_SUBTARGET_SPEC NETBSD_CPP_SPEC
48 #undef SUBTARGET_EXTRA_SPECS
49 #define SUBTARGET_EXTRA_SPECS \
50 { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \
51 { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \
52 { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC },
55 /* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. */
59 "%{G*} %{relax:-relax} \
60 %{O*:-O3} %{!O*:-O1} \
63 #define NETBSD_ENTRY_POINT "__start"
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".
70 We also need to handle the GCC option `-ffast-math'. */
73 #define ENDFILE_SPEC \
74 "%{ffast-math|funsafe-math-optimizations:crtfm%O%s} \
75 %(netbsd_endfile_spec)"
78 /* Attempt to enable execute permissions on the stack. */
80 #define TRANSFER_FROM_TRAMPOLINE NETBSD_ENABLE_EXECUTE_STACK
84 #define TARGET_VERSION fprintf (stderr, " (NetBSD/alpha ELF)");