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