netbsd-elf.h revision 1.6
1/* Definitions of target machine for GNU compiler,
2   for NetBSD/vax ELF systems.
3   Copyright (C) 2002-2016 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 3, 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 COPYING3.  If not see
19<http://www.gnu.org/licenses/>.  */
20
21/* Names to predefine in the preprocessor for this target OS.  */
22#undef TARGET_OS_CPP_BUILTINS
23#define TARGET_OS_CPP_BUILTINS()		\
24  do						\
25    {						\
26      NETBSD_OS_CPP_BUILTINS_ELF();		\
27    }						\
28  while (0)
29
30#undef CPP_SPEC
31#define CPP_SPEC NETBSD_CPP_SPEC
32
33#ifndef NETBSD_CC1_AND_CC1PLUS_SPEC
34#define NETBSD_CC1_AND_CC1PLUS_SPEC ""
35#endif
36
37#undef CC1_SPEC
38#define CC1_SPEC NETBSD_CC1_AND_CC1PLUS_SPEC VAX_CC1_AND_CC1PLUS_SPEC
39
40#undef CC1PLUS_SPEC
41#define CC1PLUS_SPEC NETBSD_CC1_AND_CC1PLUS_SPEC VAX_CC1_AND_CC1PLUS_SPEC
42
43#define NETBSD_ENTRY_POINT "__start"
44
45#undef LINK_SPEC
46#define LINK_SPEC NETBSD_LINK_SPEC_ELF
47
48#undef EXTRA_SPECS
49#define EXTRA_SPECS NETBSD_SUBTARGET_EXTRA_SPECS
50#undef SUBTARGET_EXTRA_SPECS
51
52#undef INTPTR_TYPE
53#define INTPTR_TYPE "long int"
54
55#undef UINTPTR_TYPE
56#define UINTPTR_TYPE "long unsigned int"
57
58/* We use gas, not the UNIX assembler.  */
59#undef TARGET_DEFAULT
60#define TARGET_DEFAULT MASK_QMATH
61