]> gcc.gnu.org Git - gcc.git/blame - gcc/config/alpha/netbsd.h
haifa-sched.c (schedule_block): Do not count USE and CLOBBER insns against the issue...
[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 { \
27 builtin_define ("__NetBSD__"); \
28 builtin_define ("_LP64"); \
29 builtin_assert ("system=unix"); \
30 builtin_assert ("system=NetBSD"); \
31 } while (0)
9d654bba 32
9d654bba 33/* Show that we need a GP when profiling. */
4f1c5cce
RH
34#undef TARGET_PROFILING_NEEDS_GP
35#define TARGET_PROFILING_NEEDS_GP 1
f982f805
JT
36
37
38/* Provide a CPP_SPEC appropriate for NetBSD/alpha. In addition to
39 the standard NetBSD specs, we also handle Alpha FP mode indications. */
40
41#undef CPP_SPEC
ac9cfada 42#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %(cpp_subtarget)"
f982f805 43
f982f805
JT
44/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target.
45 This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for
46 the alpha target. */
47
40039424 48#undef LINK_SPEC
f982f805
JT
49#define LINK_SPEC \
50 "%{G*} %{relax:-relax} \
51 %{O*:-O3} %{!O*:-O1} \
52 %{assert*} %{R*} \
53 %{shared:-shared} \
54 %{!shared: \
55 -dc -dp \
56 %{!nostdlib: \
57 %{!r*: \
58 %{!e*:-e __start}}} \
59 %{!static: \
60 %{rdynamic:-export-dynamic} \
61 %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
62 %{static:-static}}"
63
64
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".
68
69 We also need to handle the GCC option `-ffast-math'. */
70
71#undef ENDFILE_SPEC
72#define ENDFILE_SPEC \
73 "%{ffast-math|funsafe-math-optimizations:crtfm%O%s} \
74 %{!shared:crtend%O%s} %{shared:crtendS%O%s}"
75
76
f982f805
JT
77#undef TARGET_VERSION
78#define TARGET_VERSION fprintf (stderr, " (NetBSD/alpha ELF)");
This page took 0.741886 seconds and 5 git commands to generate.