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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [mips/] [openbsd.h] - Blame information for rev 38

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

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

powered by: WebSVN 2.1.0

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