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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions for Linux for S/390.
2
   Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2010, 2011
3
   Free Software Foundation, Inc.
4
   Contributed by Hartmut Penner (hpenner@de.ibm.com) and
5
                  Ulrich Weigand (uweigand@de.ibm.com).
6
 
7
This file is part of GCC.
8
 
9
GCC is free software; you can redistribute it and/or modify it under
10
the terms of the GNU General Public License as published by the Free
11
Software Foundation; either version 3, or (at your option) any later
12
version.
13
 
14
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15
WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17
for more details.
18
 
19
You should have received a copy of the GNU General Public License
20
along with GCC; see the file COPYING3.  If not see
21
<http://www.gnu.org/licenses/>.  */
22
 
23
#ifndef _LINUX_H
24
#define _LINUX_H
25
 
26
/* Target specific type definitions.  */
27
 
28
/* ??? Do we really want long as size_t on 31-bit?  */
29
#undef  SIZE_TYPE
30
#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "long unsigned int")
31
#undef  PTRDIFF_TYPE
32
#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
33
 
34
#undef  WCHAR_TYPE
35
#define WCHAR_TYPE "int"
36
#undef  WCHAR_TYPE_SIZE
37
#define WCHAR_TYPE_SIZE 32
38
 
39
 
40
/* Target specific preprocessor settings.  */
41
 
42
#define TARGET_OS_CPP_BUILTINS()                \
43
  do                                            \
44
    {                                           \
45
      GNU_USER_TARGET_OS_CPP_BUILTINS();        \
46
    }                                           \
47
  while (0)
48
 
49
 
50
/* Target specific assembler settings.  */
51
 
52
#undef  ASM_SPEC
53
#define ASM_SPEC "%{m31&m64}%{mesa&mzarch}%{march=*}"
54
 
55
 
56
/* Target specific linker settings.  */
57
 
58
#ifdef DEFAULT_TARGET_64BIT
59
#define MULTILIB_DEFAULTS { "m64" }
60
#else
61
#define MULTILIB_DEFAULTS { "m31" }
62
#endif
63
 
64
#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
65
#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
66
 
67
#undef  LINK_SPEC
68
#define LINK_SPEC \
69
  "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
70
   %{shared:-shared} \
71
   %{!shared: \
72
      %{static:-static} \
73
      %{!static: \
74
        %{rdynamic:-export-dynamic} \
75
        %{m31:-dynamic-linker " GNU_USER_DYNAMIC_LINKER32 "} \
76
        %{m64:-dynamic-linker " GNU_USER_DYNAMIC_LINKER64 "}}}"
77
 
78
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
79
 
80
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
81
 
82
#ifdef TARGET_LIBC_PROVIDES_SSP
83
/* s390 glibc provides __stack_chk_guard in 0x14(tp),
84
   s390x glibc provides it at 0x28(tp).  */
85
#define TARGET_THREAD_SSP_OFFSET        (TARGET_64BIT ? 0x28 : 0x14)
86
#endif
87
 
88
/* Define if long doubles should be mangled as 'g'.  */
89
#define TARGET_ALTERNATE_LONG_DOUBLE_MANGLING
90
 
91
#endif

powered by: WebSVN 2.1.0

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