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