OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [tilegx/] [linux.h] - Blame information for rev 709

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions for TILE-Gx 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 ASM_SPEC
26
#define ASM_SPEC "%{m32:--32} %{m64:--64}"
27
 
28
#undef  LINK_SPEC
29
#define LINK_SPEC "%{m64:-m elf64tilegx} %{m32:-m elf32tilegx} \
30
  %{shared:-shared} \
31
  %{!shared: \
32
    %{!static: \
33
      %{rdynamic:-export-dynamic} \
34
      -dynamic-linker \
35
        %{ m32: /lib32/ld.so.1} \
36
        %{!m32: /lib/ld.so.1}} \
37
    %{static:-static}}"
38
 
39
#define MULTILIB_DEFAULTS { "m64" }
40
 
41
#define NO_PROFILE_COUNTERS     1
42
 
43
#undef MCOUNT_NAME
44
#define MCOUNT_NAME "__mcount"
45
 
46
#undef NEED_INDICATE_EXEC_STACK
47
#define NEED_INDICATE_EXEC_STACK 1
48
 
49
#ifdef TARGET_LIBC_PROVIDES_SSP
50
/* TILE-Gx glibc provides __stack_chk_guard two pointer-size words before
51
   tp. */
52
#define TARGET_THREAD_SSP_OFFSET (-2 * GET_MODE_SIZE (ptr_mode))
53
#endif
54
 
55
/* For __clear_cache in libgcc2.c.  */
56
#ifdef IN_LIBGCC2
57
 
58
#include <arch/icache.h>
59
 
60
/* Use the minimum page size of 4K.  Alternatively we can call
61
   getpagesize() but it introduces a libc dependence.  */
62
#undef CLEAR_INSN_CACHE
63
#define CLEAR_INSN_CACHE(beg, end) invalidate_icache (beg, end - beg, 4096)
64
 
65
#else
66
 
67
/* define CLEAR_INSN_CACHE so that gcc knows to expand __builtin__clear_cache
68
   to the libraray call.  */
69
#undef CLEAR_INSN_CACHE
70
#define CLEAR_INSN_CACHE 1
71
 
72
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.