1/* Definitions of target machine for GNU compiler,
2   for NetBSD/vax ELF systems.
3   Copyright (C) 2002 Free Software Foundation, Inc.
4
5This file is part of GCC.
6
7GCC 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
12GCC 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 GCC; see the file COPYING.  If not, write to
19the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20Boston, MA 02110-1301, USA.  */
21
22/* Names to predefine in the preprocessor for this target OS.  */
23#undef TARGET_OS_CPP_BUILTINS
24#define TARGET_OS_CPP_BUILTINS()		\
25  do						\
26    {						\
27      NETBSD_OS_CPP_BUILTINS_ELF();		\
28    }						\
29  while (0)
30
31#undef CPP_SPEC
32#define CPP_SPEC NETBSD_CPP_SPEC
33
34#undef CC1_SPEC
35#define CC1_SPEC NETBSD_CC1_AND_CC1PLUS_SPEC VAX_CC1_AND_CC1PLUS_SPEC
36
37#undef CC1PLUS_SPEC
38#define CC1PLUS_SPEC NETBSD_CC1_AND_CC1PLUS_SPEC VAX_CC1_AND_CC1PLUS_SPEC
39
40#define NETBSD_ENTRY_POINT "__start"
41
42#undef LINK_SPEC
43#if 0
44/* FIXME: We must link all executables statically until PIC support
45   is added to the compiler.  */
46#define LINK_SPEC \
47  "%{assert*} %{R*} %{rpath*} \
48   %{shared:%ethe -shared option is not currently supported for VAX ELF} \
49   %{!shared: \
50     -dc -dp \
51     %{!nostdlib: \
52       %{!r*: \
53	 %{!e*:-e %(netbsd_entry_point)}}} \
54     %{!static:-static} \
55     %{static:-static}}"
56#else
57#define LINK_SPEC NETBSD_LINK_SPEC_ELF
58#endif
59
60#define EXTRA_SPECS				\
61  { "netbsd_entry_point", NETBSD_ENTRY_POINT },
62
63/* We use gas, not the UNIX assembler.  */
64#undef TARGET_DEFAULT
65#define TARGET_DEFAULT MASK_QMATH
66