2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / config / vax / linux.h
blob44dada705e18542dad1a7f3844a4712c70ee8c63
1 /* Definitions for VAX running Linux-based GNU systems with ELF format.
2 Copyright (C) 2007-2018 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
9 any later version.
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
21 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
23 /* We use GAS, G-float double and want new DI patterns. */
24 #undef TARGET_DEFAULT
25 #define TARGET_DEFAULT (MASK_QMATH | MASK_G_FLOAT)
27 /* Use standard names for udiv and umod libgcc calls. */
28 #undef TARGET_BSD_DIVMOD
29 #define TARGET_BSD_DIVMOD 0
31 #undef CPP_SPEC
32 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
34 #undef ASM_SPEC
35 #define ASM_SPEC "%{" FPIC_SPEC ":-k}"
37 #undef LINK_SPEC
38 #define LINK_SPEC \
39 "%(endian_spec) \
40 %{shared:-shared} \
41 %{!shared: \
42 %{!static: \
43 %{rdynamic:-export-dynamic} \
44 -dynamic-linker /lib/ld.so.1} \
45 %{static:-static}}"
47 #undef WCHAR_TYPE
48 #define WCHAR_TYPE "long int"
50 #undef WCHAR_TYPE_SIZE
51 #define WCHAR_TYPE_SIZE BITS_PER_WORD