OSDN Git Service

compiler: len(<-c) is not a constant.
[pf3gnuchains/gcc-fork.git] / gcc / config / tilepro / linux.h
1 /* Definitions for TILEPro running Linux-based GNU systems with ELF.
2    Copyright (C) 2011, 2012
3    Free Software Foundation, Inc.
4    Contributed by Walter Lee (walt@tilera.com)
5
6    This file is part of GCC.
7
8    GCC is free software; you can redistribute it and/or modify it
9    under the terms of the GNU General Public License as published
10    by the Free Software Foundation; either version 3, or (at your
11    option) any later version.
12
13    GCC is distributed in the hope that it will be useful, but WITHOUT
14    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16    License for more details.
17
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/>.  */
21
22 #undef CPP_SPEC
23 #define CPP_SPEC "%{pthread:-D_REENTRANT}"
24
25 #undef  LINK_SPEC
26 #define LINK_SPEC "\
27   %{shared:-shared} \
28   %{!shared: \
29     %{!static: \
30       %{rdynamic:-export-dynamic} \
31       -dynamic-linker /lib/ld.so.1} \
32     %{static:-static}}"
33
34 #define NO_PROFILE_COUNTERS     1
35
36 #undef MCOUNT_NAME
37 #define MCOUNT_NAME "__mcount"
38
39 #undef NEED_INDICATE_EXEC_STACK
40 #define NEED_INDICATE_EXEC_STACK 1
41
42 #ifdef TARGET_LIBC_PROVIDES_SSP
43 /* TILEPro glibc provides __stack_chk_guard two pointer-size words before
44    tp. */
45 #define TARGET_THREAD_SSP_OFFSET (-2 * GET_MODE_SIZE (ptr_mode))
46 #endif
47
48 /* For __clear_cache in libgcc2.c.  */
49 #ifdef IN_LIBGCC2
50
51 #include <arch/icache.h>
52
53 /* Use the minimum page size of 4K.  Alternatively we can call getpagesize()
54    but it introduces a libc dependence.  */
55 #undef CLEAR_INSN_CACHE
56 #define CLEAR_INSN_CACHE(beg, end) invalidate_icache (beg, end - beg, 4096)
57
58 #else
59
60 /* define CLEAR_INSN_CACHE so that gcc knows to expand __builtin__clear_cache
61    to the libraray call.  */
62 #undef CLEAR_INSN_CACHE
63 #define CLEAR_INSN_CACHE 1
64
65 #endif