xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/vax/linux.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
136ac495dSmrg /* Definitions for VAX running Linux-based GNU systems with ELF format.
2*8feb0f0bSmrg    Copyright (C) 2007-2020 Free Software Foundation, Inc.
336ac495dSmrg 
436ac495dSmrg This file is part of GCC.
536ac495dSmrg 
636ac495dSmrg GCC is free software; you can redistribute it and/or modify
736ac495dSmrg it under the terms of the GNU General Public License as published by
836ac495dSmrg the Free Software Foundation; either version 3, or (at your option)
936ac495dSmrg any later version.
1036ac495dSmrg 
1136ac495dSmrg GCC is distributed in the hope that it will be useful,
1236ac495dSmrg but WITHOUT ANY WARRANTY; without even the implied warranty of
1336ac495dSmrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1436ac495dSmrg GNU General Public License for more details.
1536ac495dSmrg 
1636ac495dSmrg You should have received a copy of the GNU General Public License
1736ac495dSmrg along with GCC; see the file COPYING3.  If not see
1836ac495dSmrg <http://www.gnu.org/licenses/>.  */
1936ac495dSmrg 
2036ac495dSmrg 
2136ac495dSmrg #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
2236ac495dSmrg 
2336ac495dSmrg /* We use GAS, G-float double and want new DI patterns.  */
2436ac495dSmrg #undef TARGET_DEFAULT
2536ac495dSmrg #define TARGET_DEFAULT (MASK_QMATH | MASK_G_FLOAT)
2636ac495dSmrg 
2736ac495dSmrg /* Use standard names for udiv and umod libgcc calls.  */
2836ac495dSmrg #undef TARGET_BSD_DIVMOD
2936ac495dSmrg #define TARGET_BSD_DIVMOD 0
3036ac495dSmrg 
3136ac495dSmrg #undef CPP_SPEC
3236ac495dSmrg #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
3336ac495dSmrg 
3436ac495dSmrg #undef ASM_SPEC
3536ac495dSmrg #define ASM_SPEC "%{" FPIC_SPEC ":-k}"
3636ac495dSmrg 
3736ac495dSmrg #undef LINK_SPEC
3836ac495dSmrg #define LINK_SPEC \
3936ac495dSmrg  "%(endian_spec) \
4036ac495dSmrg   %{shared:-shared} \
4136ac495dSmrg   %{!shared: \
4236ac495dSmrg     %{!static: \
4336ac495dSmrg       %{rdynamic:-export-dynamic} \
4436ac495dSmrg       -dynamic-linker /lib/ld.so.1} \
4536ac495dSmrg     %{static:-static}}"
4636ac495dSmrg 
4736ac495dSmrg #undef  WCHAR_TYPE
4836ac495dSmrg #define WCHAR_TYPE "long int"
4936ac495dSmrg 
5036ac495dSmrg #undef  WCHAR_TYPE_SIZE
5136ac495dSmrg #define WCHAR_TYPE_SIZE BITS_PER_WORD
52