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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [beos-elf.h] - Blame information for rev 868

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

Line No. Rev Author Line
1 38 julius
/* Definitions for Intel x86 running BeOS
2
   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2007
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
 
22
#define TARGET_VERSION fprintf (stderr, " (i386 BeOS/ELF)");
23
 
24
/* Change debugging to Dwarf2.  */
25
#undef PREFERRED_DEBUGGING_TYPE
26
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
27
 
28
/* The SVR4 ABI for the i386 says that records and unions are returned
29
   in memory.  */
30
#undef DEFAULT_PCC_STRUCT_RETURN
31
#define DEFAULT_PCC_STRUCT_RETURN 1
32
 
33
#undef ASM_COMMENT_START
34
#define ASM_COMMENT_START " #"
35
 
36
#undef DBX_REGISTER_NUMBER
37
#define DBX_REGISTER_NUMBER(n) \
38
  (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
39
 
40
/* Output assembler code to FILE to increment profiler label # LABELNO
41
   for profiling a function entry.  */
42
 
43
#undef MCOUNT_NAME
44
#define MCOUNT_NAME "mcount"
45
 
46
#undef SIZE_TYPE
47
#define SIZE_TYPE "long unsigned int"
48
 
49
#undef PTRDIFF_TYPE
50
#define PTRDIFF_TYPE "long int"
51
 
52
#undef WCHAR_TYPE
53
#define WCHAR_TYPE "short unsigned int"
54
 
55
#undef WCHAR_TYPE_SIZE
56
#define WCHAR_TYPE_SIZE 16
57
 
58
#define TARGET_DECLSPEC 1
59
 
60
#define TARGET_OS_CPP_BUILTINS()                                        \
61
  do                                                                    \
62
    {                                                                   \
63
        builtin_define ("__BEOS__");                                    \
64
        builtin_define ("__INTEL__");                                   \
65
        builtin_define ("_X86_");                                       \
66
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
67
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
68
        builtin_assert ("system=beos");                                 \
69
    }                                                                   \
70
  while (0)
71
 
72
/* BeOS uses lots of multichars, so don't warn about them unless the
73
   user explicitly asks for the warnings with -Wmultichar.  Note that
74
   CC1_SPEC is used for both cc1 and cc1plus.  */
75
 
76
#undef CC1_SPEC
77
#define CC1_SPEC "%{!no-fpic:%{!fno-pic:%{!fno-pie:%{!fpie:%{!fPIC:%{!fPIE:-fpic}}}}}} %{!Wmultichar: -Wno-multichar} %(cc1_cpu) %{profile:-p}"
78
 
79
#undef CC1PLUS_SPEC
80
#define CC1PLUS_SPEC "%{!Wctor-dtor-privacy:-Wno-ctor-dtor-privacy}"
81
 
82
/* Provide a LINK_SPEC appropriate for BeOS.  Here we provide support
83
   for the special GCC options -static and -shared, which allow us to
84
   link things in one of these three modes by applying the appropriate
85
   combinations of options at link-time.  */
86
 
87
/* If ELF is the default format, we should not use /lib/elf.  */
88
 
89
#undef  LINK_SPEC
90
#define LINK_SPEC "%{!o*:-o %b} -m elf_i386_be -shared -Bsymbolic %{nostart:-e 0}"
91
 
92
/* Provide start and end file specs appropriate to glibc.  */
93
 
94
/* LIB_SPEC for BeOS */
95
#undef LIB_SPEC
96
#define LIB_SPEC "-lnet -lroot"
97
 
98
/* gcc runtime lib is built into libroot.so on BeOS */
99
/* ??? This is gonna be lovely when the next release of gcc has
100
   some new symbol in, so that links start failing.  */
101
#undef LIBGCC_SPEC
102
#define LIBGCC_SPEC ""
103
 
104
#undef  STARTFILE_SPEC
105
#define STARTFILE_SPEC "crti.o%s crtbegin.o%s %{!nostart:start_dyn.o%s} init_term_dyn.o%s %{p:i386-mcount.o%s}"
106
 
107
#undef  ENDFILE_SPEC
108
#define ENDFILE_SPEC "crtend.o%s crtn.o%s"
109
 
110
/* A C statement (sans semicolon) to output to the stdio stream
111
   FILE the assembler definition of uninitialized global DECL named
112
   NAME whose size is SIZE bytes and alignment is ALIGN bytes.
113
   Try to use asm_output_aligned_bss to implement this macro.  */
114
 
115
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
116
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
117
 
118
/* A C statement to output to the stdio stream FILE an assembler
119
   command to advance the location counter to a multiple of 1<<LOG
120
   bytes if it is within MAX_SKIP bytes.
121
 
122
   This is used to align code labels according to Intel recommendations.  */
123
 
124
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
125
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
126
  if ((LOG)!=0) \
127
    if ((MAX_SKIP)==0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
128
    else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP))
129
#endif
130
 
131
/* For native compiler, use standard BeOS include file search paths
132
   rooted in /boot/develop/headers.  For a cross compiler, don't
133
   expect the host to use the BeOS directory scheme, and instead look
134
   for the BeOS include files relative to TOOL_INCLUDE_DIR.  Yes, we
135
   use ANSI string concatenation here (FIXME) */
136
 
137
#ifndef CROSS_COMPILE
138
#undef INCLUDE_DEFAULTS
139
#define INCLUDE_DEFAULTS \
140
    { \
141
    { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 },\
142
    { GCC_INCLUDE_DIR, "GCC", 0, 0 },\
143
    { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1}, \
144
    { "/boot/develop/headers/be/add-ons/graphics", 0, 0, 0 },\
145
    { "/boot/develop/headers/be/devel", 0, 0, 0 },\
146
    { "/boot/develop/headers/be/translation", 0, 0, 0 },\
147
    { "/boot/develop/headers/be/mail", 0, 0, 0 },\
148
    { "/boot/develop/headers/gnu", 0, 0, 0 },\
149
    { "/boot/develop/headers/be/drivers", 0, 0, 0 },\
150
    { "/boot/develop/headers/be/opengl", 0, 0, 0 },\
151
    { "/boot/develop/headers/be/game", 0, 0, 0 },\
152
    { "/boot/develop/headers/be/support", 0, 0, 0 },\
153
    { "/boot/develop/headers/be/storage", 0, 0, 0 },\
154
    { "/boot/develop/headers/be/kernel", 0, 0, 0 },\
155
    { "/boot/develop/headers/be/net", 0, 0, 0 },\
156
    { "/boot/develop/headers/be/midi", 0, 0, 0 },\
157
    { "/boot/develop/headers/be/midi2", 0, 0, 0 },\
158
    { "/boot/develop/headers/be/media", 0, 0, 0 },\
159
    { "/boot/develop/headers/be/interface", 0, 0, 0 },\
160
    { "/boot/develop/headers/be/device", 0, 0, 0 },\
161
    { "/boot/develop/headers/be/app", 0, 0, 0 },\
162
    { "/boot/develop/headers/be/precompiled", 0, 0, 0 },\
163
    { "/boot/develop/headers/be/add-ons/input_server", 0, 0, 0 },\
164
    { "/boot/develop/headers/be/add-ons/net_server", 0, 0, 0 },\
165
    { "/boot/develop/headers/be/add-ons/screen_saver", 0, 0, 0 },\
166
    { "/boot/develop/headers/be/add-ons/tracker", 0, 0, 0 },\
167
    { "/boot/develop/headers/be/be_apps/Deskbar", 0, 0, 0 },\
168
    { "/boot/develop/headers/be/be_apps/NetPositive", 0, 0, 0 },\
169
    { "/boot/develop/headers/be/be_apps/Tracker", 0, 0, 0 },\
170
    { "/boot/develop/headers/be/drivers/tty", 0, 0, 0 },\
171
    { "/boot/develop/headers/be/net/netinet", 0, 0, 0 },\
172
    { "/boot/develop/headers/be/storage", 0, 0, 0 },\
173
    { "/boot/develop/headers/be", 0, 0, 0 },\
174
    { "/boot/develop/headers/cpp", 0, 0, 0 },\
175
    { "/boot/develop/headers/posix", 0, 0, 0 },\
176
    { "/boot/develop/headers", 0, 0, 0 }, \
177
    { 0, 0, 0, 0 } \
178
    }
179
#else /* CROSS_COMPILE */
180
#undef  INCLUDE_DEFAULTS
181
#define INCLUDE_DEFAULTS                                \
182
    { \
183
    { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 },\
184
    { GCC_INCLUDE_DIR, "GCC", 0, 0 },\
185
    { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1}, \
186
    { CROSS_INCLUDE_DIR "/be/add-ons/graphics", 0, 0, 0 },\
187
    { CROSS_INCLUDE_DIR "/be/devel", 0, 0, 0 },\
188
    { CROSS_INCLUDE_DIR "/be/translation", 0, 0, 0 },\
189
    { CROSS_INCLUDE_DIR "/be/mail", 0, 0, 0 },\
190
    { CROSS_INCLUDE_DIR "/gnu", 0, 0, 0 },\
191
    { CROSS_INCLUDE_DIR "/be/drivers", 0, 0, 0 },\
192
    { CROSS_INCLUDE_DIR "/be/opengl", 0, 0, 0 },\
193
    { CROSS_INCLUDE_DIR "/be/game", 0, 0, 0 },\
194
    { CROSS_INCLUDE_DIR "/be/support", 0, 0, 0 },\
195
    { CROSS_INCLUDE_DIR "/be/storage", 0, 0, 0 },\
196
    { CROSS_INCLUDE_DIR "/be/kernel", 0, 0, 0 },\
197
    { CROSS_INCLUDE_DIR "/be/net", 0, 0, 0 },\
198
    { CROSS_INCLUDE_DIR "/be/midi", 0, 0, 0 },\
199
    { CROSS_INCLUDE_DIR "/be/midi2", 0, 0, 0 },\
200
    { CROSS_INCLUDE_DIR "/be/media", 0, 0, 0 },\
201
    { CROSS_INCLUDE_DIR "/be/interface", 0, 0, 0 },\
202
    { CROSS_INCLUDE_DIR "/be/device", 0, 0, 0 },\
203
    { CROSS_INCLUDE_DIR "/be/app", 0, 0, 0 },\
204
    { CROSS_INCLUDE_DIR "/be/precompiled", 0, 0, 0 },\
205
    { CROSS_INCLUDE_DIR "/be/add-ons/input_server", 0, 0, 0 },\
206
    { CROSS_INCLUDE_DIR "/be/add-ons/net_server", 0, 0, 0 },\
207
    { CROSS_INCLUDE_DIR "/be/add-ons/screen_saver", 0, 0, 0 },\
208
    { CROSS_INCLUDE_DIR "/be/add-ons/tracker", 0, 0, 0 },\
209
    { CROSS_INCLUDE_DIR "/be/be_apps/Deskbar", 0, 0, 0 },\
210
    { CROSS_INCLUDE_DIR "/be/be_apps/NetPositive", 0, 0, 0 },\
211
    { CROSS_INCLUDE_DIR "/be/be_apps/Tracker", 0, 0, 0 },\
212
    { CROSS_INCLUDE_DIR "/be/drivers/tty", 0, 0, 0 },\
213
    { CROSS_INCLUDE_DIR "/be/net/netinet", 0, 0, 0 },\
214
    { CROSS_INCLUDE_DIR "/be/storage", 0, 0, 0 },\
215
    { CROSS_INCLUDE_DIR "/be", 0, 0, 0 },\
216
    { CROSS_INCLUDE_DIR "/cpp", 0, 0, 0 },\
217
    { CROSS_INCLUDE_DIR "/posix", 0, 0, 0 },\
218
    { CROSS_INCLUDE_DIR , 0, 0, 0 }, \
219
    { 0, 0, 0, 0 } \
220
    }
221
#endif
222
 
223
/* Whee.  LIBRARY_PATH is Be's LD_LIBRARY_PATH, which of course will
224
   cause nasty problems if we override it.  */
225
#define LIBRARY_PATH_ENV        "BELIBRARIES"
226
 
227
/* BeOS doesn't have a separate math library.  */
228
#define MATH_LIBRARY ""
229
 
230
/* BeOS headers are C++-aware (and often use C++).  */
231
#define NO_IMPLICIT_EXTERN_C
232
 
233
/* BeOS uses explicit import from shared libraries.  */
234
#define MULTIPLE_SYMBOL_SPACES 1

powered by: WebSVN 2.1.0

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