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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [mips/] [openbsd.h] - Blame information for rev 758

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

Line No. Rev Author Line
1 709 jeremybenn
/* Configuration for  a MIPS ABI32 OpenBSD target.
2
   Copyright (C) 1999, 2003, 2004, 2007, 2008, 2009, 2010, 2011
3
   Free Software Foundation, Inc.
4
 
5
This file is part of GCC.
6
 
7
GCC is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 3, or (at your option)
10
any later version.
11
 
12
GCC is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with GCC; see the file COPYING3.  If not see
19
<http://www.gnu.org/licenses/>.  */
20
 
21
/* Definitions needed for OpenBSD, to avoid picking mips 'defaults'.  */
22
 
23
/* GAS must know this.  */
24
#undef SUBTARGET_ASM_SPEC
25
#define SUBTARGET_ASM_SPEC "%{fPIC|fPIE:-KPIC}"
26
 
27
/* CPP specific OpenBSD specs.  */
28
#undef SUBTARGET_CPP_SPEC
29
#define SUBTARGET_CPP_SPEC OBSD_CPP_SPEC
30
 
31
/* Needed for ELF (inspired by netbsd-elf).  */
32
#undef LOCAL_LABEL_PREFIX
33
#define LOCAL_LABEL_PREFIX      "."
34
 
35
/* The profiling lib spec here is not really correct but we leave
36
   it as it is until we have some kind of profiling working.  */
37
#define LIB_SPEC OBSD_LIB_SPEC
38
 
39
/* mips assembler uses .set for arcane purposes.  __attribute__((alias))
40
   and friends won't work until we get recent binutils with .weakext
41
        support.  */
42
#undef SET_ASM_OP
43
 
44
#define TARGET_OS_CPP_BUILTINS()                        \
45
    do {                                                \
46
        builtin_define ("__unix__");                    \
47
        builtin_define ("__SYSTYPE_BSD__");             \
48
        builtin_define ("__NO_LEADING_UNDERSCORES__");  \
49
        builtin_define ("__GP_SUPPORT__");              \
50
        builtin_define ("__OpenBSD__");                 \
51
        builtin_assert ("system=unix");                 \
52
        builtin_assert ("system=OpenBSD");              \
53
} while (0)
54
 
55
/* Layout of source language data types.  */
56
 
57
/* This must agree with <machine/ansi.h>.  */
58
#undef SIZE_TYPE
59
#define SIZE_TYPE "long unsigned int"
60
 
61
#undef PTRDIFF_TYPE
62
#define PTRDIFF_TYPE "long int"
63
 
64
#undef WCHAR_TYPE
65
#define WCHAR_TYPE "int"
66
 
67
#undef WCHAR_TYPE_SIZE
68
#define WCHAR_TYPE_SIZE 32
69
 
70
#undef WINT_TYPE
71
#define WINT_TYPE "int"
72
 
73
/* Controlling the compilation driver.  */
74
 
75
/* LINK_SPEC appropriate for OpenBSD:  support for GCC options
76
   -static, -assert, and -nostdlib. Dynamic loader control.  */
77
#undef LINK_SPEC
78
#define LINK_SPEC \
79
  "%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
80
   %{shared} \
81
   %{!shared: -non_shared} \
82
   -dynamic-linker /usr/libexec/ld.so \
83
   %{!nostdlib:%{!r:%{!e*:-e __start}}} -dc -dp \
84
   %{static:-Bstatic} %{!static:-Bdynamic} %{assert*}"
85
 
86
/* -G is incompatible with -KPIC which is the default, so only allow objects
87
   in the small data section if the user explicitly asks for it.  */
88
#undef MIPS_DEFAULT_GVALUE
89
#define MIPS_DEFAULT_GVALUE 0
90
 
91
 
92
/* Since gas and gld are standard on OpenBSD, we don't need these.  */
93
#undef ASM_FINAL_SPEC
94
#undef STARTFILE_SPEC
95
 
96
/* Switch into a generic section.  */
97
#undef TARGET_ASM_NAMED_SECTION
98
#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
99
 
100
/* MIPS specific debugging info */
101
#define MIPS_DEBUGGING_INFO 1

powered by: WebSVN 2.1.0

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