Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / config / vax / linux.h
blob93ce7bb3a255c4a7383aa273edf030b6d21698bc
1 /* Definitions for VAX running Linux-based GNU systems with ELF format.
2 Copyright (C) 2007, 2009, 2010 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 #undef TARGET_VERSION
22 #define TARGET_VERSION fprintf (stderr, " (VAX GNU/Linux with ELF)");
24 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
26 /* We use GAS, G-float double and want new DI patterns. */
27 #undef TARGET_DEFAULT
28 #define TARGET_DEFAULT (MASK_QMATH | MASK_G_FLOAT)
30 /* Use standard names for udiv and umod libgcc calls. */
31 #undef TARGET_BSD_DIVMOD
32 #define TARGET_BSD_DIVMOD 0
34 #undef CPP_SPEC
35 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
37 #undef ASM_SPEC
38 #define ASM_SPEC "%{fpic|fPIC:-k}"
40 #undef LINK_SPEC
41 #define LINK_SPEC \
42 "%(endian_spec) \
43 %{shared:-shared} \
44 %{!shared: \
45 %{!static: \
46 %{rdynamic:-export-dynamic} \
47 -dynamic-linker /lib/ld.so.1} \
48 %{static:-static}}"
50 #undef WCHAR_TYPE
51 #define WCHAR_TYPE "long int"
53 #undef WCHAR_TYPE_SIZE
54 #define WCHAR_TYPE_SIZE BITS_PER_WORD