PR c++/34774
[official-gcc.git] / gcc / config / xtensa / linux.h
blob69ab626b20114e319e5b0e0124a524d797fe460b
1 /* Xtensa Linux configuration.
2 Derived from the configuration for GCC for Intel i386 running Linux.
3 Copyright (C) 2001, 2002, 2003, 2006, 2007, 2008
4 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
24 #undef SUBTARGET_CPP_SPEC
25 #define SUBTARGET_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
27 #undef TARGET_VERSION
28 #define TARGET_VERSION fputs (" (Xtensa GNU/Linux with ELF)", stderr);
30 #undef WCHAR_TYPE
31 #define WCHAR_TYPE "long int"
33 #undef WCHAR_TYPE_SIZE
34 #define WCHAR_TYPE_SIZE 32
36 #undef ASM_SPEC
37 #define ASM_SPEC \
38 "%{v} \
39 %{mtext-section-literals:--text-section-literals} \
40 %{mno-text-section-literals:--no-text-section-literals} \
41 %{mtarget-align:--target-align} \
42 %{mno-target-align:--no-target-align} \
43 %{mlongcalls:--longcalls} \
44 %{mno-longcalls:--no-longcalls}"
46 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
48 #undef LINK_SPEC
49 #define LINK_SPEC \
50 "%{shared:-shared} \
51 %{!shared: \
52 %{!ibcs: \
53 %{!static: \
54 %{rdynamic:-export-dynamic} \
55 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \
56 %{static:-static}}}"
58 #undef LOCAL_LABEL_PREFIX
59 #define LOCAL_LABEL_PREFIX "."
61 /* Always enable "-fpic" for Xtensa Linux. */
62 #define XTENSA_ALWAYS_PIC 1
64 #define MD_UNWIND_SUPPORT "config/xtensa/linux-unwind.h"