1*404b540aSrobert /* Definitions of target machine for GNU compiler, 2*404b540aSrobert for Alpha Linux-based GNU systems. 3*404b540aSrobert Copyright (C) 1996, 1997, 1998, 2002, 2003, 2004, 2005, 2006 4*404b540aSrobert Free Software Foundation, Inc. 5*404b540aSrobert Contributed by Richard Henderson. 6*404b540aSrobert 7*404b540aSrobert This file is part of GCC. 8*404b540aSrobert 9*404b540aSrobert GCC is free software; you can redistribute it and/or modify 10*404b540aSrobert it under the terms of the GNU General Public License as published by 11*404b540aSrobert the Free Software Foundation; either version 2, or (at your option) 12*404b540aSrobert any later version. 13*404b540aSrobert 14*404b540aSrobert GCC is distributed in the hope that it will be useful, 15*404b540aSrobert but WITHOUT ANY WARRANTY; without even the implied warranty of 16*404b540aSrobert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*404b540aSrobert GNU General Public License for more details. 18*404b540aSrobert 19*404b540aSrobert You should have received a copy of the GNU General Public License 20*404b540aSrobert along with GCC; see the file COPYING. If not, write to 21*404b540aSrobert the Free Software Foundation, 51 Franklin Street, Fifth Floor, 22*404b540aSrobert Boston, MA 02110-1301, USA. */ 23*404b540aSrobert 24*404b540aSrobert #undef TARGET_DEFAULT 25*404b540aSrobert #define TARGET_DEFAULT (MASK_FPREGS | MASK_GAS) 26*404b540aSrobert 27*404b540aSrobert #define TARGET_OS_CPP_BUILTINS() \ 28*404b540aSrobert do { \ 29*404b540aSrobert builtin_define ("__gnu_linux__"); \ 30*404b540aSrobert builtin_define ("_LONGLONG"); \ 31*404b540aSrobert builtin_define_std ("linux"); \ 32*404b540aSrobert builtin_define_std ("unix"); \ 33*404b540aSrobert builtin_assert ("system=linux"); \ 34*404b540aSrobert builtin_assert ("system=unix"); \ 35*404b540aSrobert builtin_assert ("system=posix"); \ 36*404b540aSrobert /* The GNU C++ standard library requires this. */ \ 37*404b540aSrobert if (c_dialect_cxx ()) \ 38*404b540aSrobert builtin_define ("_GNU_SOURCE"); \ 39*404b540aSrobert } while (0) 40*404b540aSrobert 41*404b540aSrobert #undef LIB_SPEC 42*404b540aSrobert #define LIB_SPEC \ 43*404b540aSrobert "%{pthread:-lpthread} \ 44*404b540aSrobert %{shared:-lc} \ 45*404b540aSrobert %{!shared: %{profile:-lc_p}%{!profile:-lc}}" 46*404b540aSrobert 47*404b540aSrobert #undef CPP_SPEC 48*404b540aSrobert #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" 49*404b540aSrobert 50*404b540aSrobert /* Show that we need a GP when profiling. */ 51*404b540aSrobert #undef TARGET_PROFILING_NEEDS_GP 52*404b540aSrobert #define TARGET_PROFILING_NEEDS_GP 1 53*404b540aSrobert 54*404b540aSrobert /* Don't care about faults in the prologue. */ 55*404b540aSrobert #undef TARGET_CAN_FAULT_IN_PROLOGUE 56*404b540aSrobert #define TARGET_CAN_FAULT_IN_PROLOGUE 1 57*404b540aSrobert 58*404b540aSrobert /* OS fixes up EV5 data fault on prefetch. */ 59*404b540aSrobert #undef TARGET_FIXUP_EV5_PREFETCH 60*404b540aSrobert #define TARGET_FIXUP_EV5_PREFETCH 1 61*404b540aSrobert 62*404b540aSrobert #undef WCHAR_TYPE 63*404b540aSrobert #define WCHAR_TYPE "int" 64*404b540aSrobert 65*404b540aSrobert /* Define this so that all GNU/Linux targets handle the same pragmas. */ 66*404b540aSrobert #define HANDLE_PRAGMA_PACK_PUSH_POP 67*404b540aSrobert 68*404b540aSrobert /* Determine whether the entire c99 runtime is present in the 69*404b540aSrobert runtime library. */ 70*404b540aSrobert #define TARGET_C99_FUNCTIONS (OPTION_GLIBC) 71*404b540aSrobert 72*404b540aSrobert #define TARGET_POSIX_IO 73*404b540aSrobert 74*404b540aSrobert #define LINK_GCC_C_SEQUENCE_SPEC \ 75*404b540aSrobert "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" 76*404b540aSrobert 77*404b540aSrobert /* Use --as-needed -lgcc_s for eh support. */ 78*404b540aSrobert #ifdef HAVE_LD_AS_NEEDED 79*404b540aSrobert #define USE_LD_AS_NEEDED 1 80*404b540aSrobert #endif 81*404b540aSrobert 82*404b540aSrobert #define MD_UNWIND_SUPPORT "config/alpha/linux-unwind.h" 83*404b540aSrobert 84*404b540aSrobert /* Define if long doubles should be mangled as 'g'. */ 85*404b540aSrobert #define TARGET_ALTERNATE_LONG_DOUBLE_MANGLING 86