xref: /haiku/src/system/libroot/posix/glibc/include/arch/ppc/config.h (revision 922e7ba1f3228e6f28db69b0ded8f86eb32dea17)
1 //#if !defined __ASSEMBLER__ && !defined _ISOMAC && !defined __OPTIMIZE__
2 //# error "glibc cannot be compiled without optimization"
3 //#endif
4 
5 /* Another evil option when it comes to compiling the C library is
6    --ffast-math since it alters the ABI.  */
7 #if defined __FAST_MATH__ && !defined TEST_FAST_MATH
8 # error "glibc must not be compiled with -ffast-math"
9 #endif
10 
11 /* Define if using GNU ld, with support for weak symbols in a.out,
12    and for symbol set and warning messages extensions in a.out and ELF.
13    This implies HAVE_WEAK_SYMBOLS; set by --with-gnu-ld.  */
14 #define	HAVE_GNU_LD 1
15 
16 /* Define if using ELF, which supports weak symbols.
17    This implies HAVE_ASM_WEAK_DIRECTIVE and NO_UNDERSCORES; set by
18    --with-elf.  */
19 #define	HAVE_ELF 1
20 
21 /* Define if using XCOFF. Set by --with-xcoff.  */
22 #undef	HAVE_XCOFF
23 
24 /* Define if C symbols are asm symbols.  Don't define if C symbols
25    have a `_' prepended to make the asm symbol.  */
26 #define	NO_UNDERSCORES 1
27 
28 /* Define if weak symbols are available via the `.weak' directive.  */
29 #define	HAVE_ASM_WEAK_DIRECTIVE 1
30 
31 /* Define if weak symbols are available via the `.weakext' directive.  */
32 #undef	HAVE_ASM_WEAKEXT_DIRECTIVE
33 
34 /* Define to the assembler line separator character for multiple
35    assembler instructions per line.  Default is `;'  */
36 #undef ASM_LINE_SEP
37 
38 /* Define if not using ELF, but `.init' and `.fini' sections are available.  */
39 #undef	HAVE_INITFINI
40 
41 /* Define if __attribute__((section("foo"))) puts quotes around foo.  */
42 /*#define	HAVE_SECTION_QUOTES 1
43  [zooey]: defining this causes assembler errors, and I don't think
44           that any BeOS-gcc actually produces quotes in sections...
45 */
46 #undef	HAVE_SECTION_QUOTES
47 
48 /* Define if using the GNU assembler, gas.  */
49 #define	HAVE_GNU_AS 1
50 
51 /* Define if the assembler supports the `.set' directive.  */
52 #define	HAVE_ASM_SET_DIRECTIVE 1
53 
54 /* Define to the name of the assembler's directive for
55    declaring a symbol global (default `.globl').  */
56 #define	ASM_GLOBAL_DIRECTIVE .globl
57 
58 /* Define to the prefix before `object' or `function' in the
59    assembler's `.type' directive, if it has one.  */
60 #undef	ASM_TYPE_DIRECTIVE_PREFIX
61 
62 /* Define a symbol_name as a global .symbol_name for ld.  */
63 #undef	HAVE_ASM_GLOBAL_DOT_NAME
64 
65 /* Define if the assembler generates debugging information directly.  */
66 #undef	HAVE_CPP_ASM_DEBUGINFO
67 
68 /* Define if _Unwind_Find_FDE should be exported from glibc.  */
69 #undef  EXPORT_UNWIND_FIND_FDE
70 
71 /* Define to use GNU libio instead of GNU stdio.
72    This is defined by configure under --enable-libio.  */
73 #define	USE_IN_LIBIO 1
74 
75 /* Define if using ELF and the assembler supports the `.previous'
76    directive.  */
77 #define	HAVE_ASM_PREVIOUS_DIRECTIVE 1
78 
79 /* Define if using ELF and the assembler supports the `.popsection'
80    directive.  */
81 #undef	HAVE_ASM_POPSECTION_DIRECTIVE
82 
83 /* Define if versioning of the library is wanted.  */
84 #undef	DO_VERSIONING
85 
86 /* Defined to the oldest ABI we support, like 2.1.  */
87 #undef GLIBC_OLDEST_ABI
88 
89 /* Define if static NSS modules are wanted.  */
90 #undef	DO_STATIC_NSS
91 
92 /* Define if gcc uses DWARF2 unwind information for exception support.  */
93 #define	HAVE_DWARF2_UNWIND_INFO 1
94 
95 /* Define if gcc uses DWARF2 unwind information for exception support
96    with static variable. */
97 #define	HAVE_DWARF2_UNWIND_INFO_STATIC 1
98 
99 /* Define if the compiler supports __builtin_expect.  */
100 #undef	HAVE_BUILTIN_EXPECT
101 
102 /* Define if the compiler supports __builtin_memset.  */
103 #undef	HAVE_BUILTIN_MEMSET
104 
105 /* Define if the __thread keyword is supported.  */
106 #undef HAVE___THREAD
107 
108 /* Define if the compiler supports __attribute__((tls_model(""))).  */
109 #undef HAVE_TLS_MODEL_ATTRIBUTE
110 
111 /* Define if the regparm attribute shall be used for local functions
112    (gcc on ix86 only).  */
113 #define	USE_REGPARMS 1
114 
115 /* Defined on PowerPC if the GCC being used has a problem with clobbering
116    certain registers (CR0, MQ, CTR, LR) in asm statements.  */
117 #undef	BROKEN_PPC_ASM_CR0
118 	/* TODO: bonefish: Do we need to define this? */
119 
120 /* Defined on SPARC if ld doesn't handle R_SPARC_WDISP22 against .hidden
121    symbol.  sysdeps/sparc/sparc32/elf/configure.  */
122 #undef	BROKEN_SPARC_WDISP22
123 
124 /* Define if the linker supports the -z combreloc option.  */
125 #undef	HAVE_Z_COMBRELOC
126 
127 /* Define if the assembler supported .protected.  */
128 #undef	HAVE_PROTECTED
129 
130 /* Define if the assembler supported .hidden.  */
131 #undef	HAVE_HIDDEN
132 
133 /* Define if the compiler supports __attribute__ ((visibility (...))).  */
134 #undef	HAVE_VISIBILITY_ATTRIBUTE
135 
136 /* Define if the compiler doesn't support __attribute__ ((visibility (...)))
137    together with __asm__ redirection properly.  */
138 #undef	HAVE_BROKEN_VISIBILITY_ATTRIBUTE
139 
140 /* Define if the compiler doesn't support __attribute__ ((alias (...)))
141    together with __asm__ redirection properly.  */
142 #undef	HAVE_BROKEN_ALIAS_ATTRIBUTE
143 
144 /* Define if _rtld_local structure should be forced into .sdata section.  */
145 #undef	HAVE_SDATA_SECTION
146 
147 /* Define if binutils support TLS handling.  */
148 #undef	HAVE_TLS_SUPPORT
149 
150 /* Define if the linker supports .preinit_array/.init_array/.fini_array
151    sections.  */
152 #undef	HAVE_INITFINI_ARRAY
153 
154 /* Define if the access to static and hidden variables is position independent
155    and does not need relocations.  */
156 #undef	PI_STATIC_AND_HIDDEN
157 
158 /* Define this to disable the `hidden_proto' et al macros in
159    include/libc-symbols.h that avoid PLT slots in the shared objects.  */
160 #undef	NO_HIDDEN
161 
162 
163 /* Defined to some form of __attribute__ ((...)) if the compiler supports
164    a different, more efficient calling convention.  */
165 #if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
166 # define internal_function __attribute__ ((regparm (3), stdcall))
167 #endif
168 
169 /* Linux specific: minimum supported kernel version.  */
170 #undef	__LINUX_KERNEL_VERSION
171 
172 /* Override abi-tags ABI version if necessary.  */
173 #undef  __ABI_TAG_VERSION
174 
175 /* An extension in gcc 2.96 and up allows the subtraction of two
176    local labels.  */
177 #undef	HAVE_SUBTRACT_LOCAL_LABELS
178 
179 /* bash 2.0 introduced the _XXX_GNU_nonoption_argv_flags_ variable to help
180    getopt determine whether a parameter is a flag or not.  This features
181    was disabled later since it caused trouble.  We are by default therefore
182    disabling the support as well.  */
183 #undef USE_NONOPTION_FLAGS
184 
185 /* Mach/Hurd specific: define if mig supports the `retcode' keyword.  */
186 #undef	HAVE_MIG_RETCODE
187 
188 /* Mach specific: define if the `host_page_size' RPC is available.  */
189 #undef	HAVE_HOST_PAGE_SIZE
190 
191 /* Mach/i386 specific: define if the `i386_io_perm_*' RPCs are available.  */
192 #undef	HAVE_I386_IO_PERM_MODIFY
193 
194 /* Mach/i386 specific: define if the `i386_set_gdt' RPC is available.  */
195 #undef	HAVE_I386_SET_GDT
196 
197 /* bonefish: Currently our PPC gcc doesn't support 128 bit long double.
198    It's 64 bit instead. I tried to change that, but apparently there's no
199    support for TI mode emulation for PPC. So we define NO_LONG_DOUBLE for
200    the time being, which creates aliases of the double math functions to
201    the respective long double functions. */
202 #define NO_LONG_DOUBLE 1
203 #define __NO_LONG_DOUBLE_MATH 1
204 
205 /*
206  */
207 
208 #ifndef	_LIBC
209 
210 /* These symbols might be defined by some sysdeps configures.
211    They are used only in miscellaneous generator programs, not
212    in compiling libc itself.   */
213 
214 /* sysdeps/generic/configure.in */
215 #undef	HAVE_PSIGNAL
216 
217 /* sysdeps/unix/configure.in */
218 #define	HAVE_STRERROR
219 
220 /* sysdeps/unix/common/configure.in */
221 #undef	HAVE_SYS_SIGLIST
222 #undef	HAVE__SYS_SIGLIST
223 #undef	HAVE__CTYPE_
224 #undef	HAVE___CTYPE_
225 #undef	HAVE___CTYPE
226 #undef	HAVE__CTYPE__
227 #undef	HAVE__CTYPE
228 #undef	HAVE__LOCP
229 
230 #endif
231 
232 /*
233  */
234 
235 #ifdef	_LIBC
236 
237 /* The zic and zdump programs need these definitions.  */
238 
239 #define	HAVE_STRERROR	1
240 
241 /* The locale code needs these definitions.  */
242 
243 #define HAVE_REGEX 1
244 
245 //#define HAVE_MMAP 1
246 #undef HAVE_MMAP
247 
248 #endif
249