1 /* Definitions for VAX running Linux-based GNU systems with ELF format. 2 Copyright (C) 2007, 2009 Free Software Foundation, Inc. 3 4 This file is part of GCC. 5 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. 10 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. 15 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/>. */ 19 20 21 #undef TARGET_VERSION 22 #define TARGET_VERSION fprintf (stderr, " (VAX GNU/Linux with ELF)"); 23 24 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS() 25 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) 29 30 /* Use standard names for udiv and umod libgcc calls. */ 31 #undef TARGET_BSD_DIVMOD 32 #define TARGET_BSD_DIVMOD 0 33 34 #undef CPP_SPEC 35 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" 36 37 #undef ASM_SPEC 38 #define ASM_SPEC "%{fpic|fPIC:-k}" 39 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:-dynamic-linker /lib/ld.so.1}} \ 48 %{static:-static}}" 49