]> gcc.gnu.org Git - gcc.git/blame - gcc/defaults.h
re PR middle-end/18785 (isdigit builtin function fails with EBCDIC character sets)
[gcc.git] / gcc / defaults.h
CommitLineData
eff01bb6 1/* Definitions of various defaults for tm.h macros.
ad616de1
KH
2 Copyright (C) 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 2005
d8ea8f28 4 Free Software Foundation, Inc.
b33c316c 5 Contributed by Ron Guilmette (rfg@monkeys.com)
c53a8ab6 6
1322177d 7This file is part of GCC.
c53a8ab6 8
1322177d
LB
9GCC is free software; you can redistribute it and/or modify it under
10the terms of the GNU General Public License as published by the Free
11Software Foundation; either version 2, or (at your option) any later
12version.
c53a8ab6 13
1322177d
LB
14GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15WARRANTY; without even the implied warranty of MERCHANTABILITY or
16FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17for more details.
c53a8ab6
RS
18
19You should have received a copy of the GNU General Public License
1322177d
LB
20along with GCC; see the file COPYING. If not, write to the Free
21Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2202111-1307, USA. */
c53a8ab6 23
d8ea8f28
ZW
24#ifndef GCC_DEFAULTS_H
25#define GCC_DEFAULTS_H
26
2f8dd115
NB
27#ifndef GET_ENVIRONMENT
28#define GET_ENVIRONMENT(VALUE, NAME) do { (VALUE) = getenv (NAME); } while (0)
29#endif
30
95ec27aa
SB
31#define obstack_chunk_alloc ((void *(*) (long)) xmalloc)
32#define obstack_chunk_free ((void (*) (void *)) free)
33#define OBSTACK_CHUNK_SIZE 0
34#define gcc_obstack_init(OBSTACK) \
35 _obstack_begin ((OBSTACK), OBSTACK_CHUNK_SIZE, 0, \
36 obstack_chunk_alloc, \
37 obstack_chunk_free)
4fa31c2a 38
4977bab6
ZW
39/* Store in OUTPUT a string (made with alloca) containing an
40 assembler-name for a local static variable or function named NAME.
7b73db04
CH
41 LABELNO is an integer which is different for each call. */
42
4977bab6
ZW
43#ifndef ASM_PN_FORMAT
44# ifndef NO_DOT_IN_LABEL
45# define ASM_PN_FORMAT "%s.%lu"
46# else
47# ifndef NO_DOLLAR_IN_LABEL
48# define ASM_PN_FORMAT "%s$%lu"
49# else
50# define ASM_PN_FORMAT "__%s_%lu"
51# endif
52# endif
53#endif /* ! ASM_PN_FORMAT */
54
7b73db04 55#ifndef ASM_FORMAT_PRIVATE_NAME
4977bab6
ZW
56# define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \
57 do { const char *const name_ = (NAME); \
28dab132
BI
58 char *const output_ = (OUTPUT) = \
59 (char *) alloca (strlen (name_) + 32); \
4977bab6 60 sprintf (output_, ASM_PN_FORMAT, name_, (unsigned long)(LABELNO)); \
7b73db04
CH
61 } while (0)
62#endif
63
7b73db04
CH
64/* This is how to output an element of a case-vector that is absolute.
65 Some targets don't use this, but we have to define it anyway. */
66
67#ifndef ASM_OUTPUT_ADDR_VEC_ELT
68#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
07b50aad 69do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
4977bab6 70 (*targetm.asm_out.internal_label) (FILE, "L", (VALUE)); \
7b73db04
CH
71 fputc ('\n', FILE); \
72 } while (0)
73#endif
74
e0a21ab9 75/* Choose a reasonable default for ASM_OUTPUT_ASCII. */
c53a8ab6
RS
76
77#ifndef ASM_OUTPUT_ASCII
78#define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
79 do { \
80 FILE *_hide_asm_out_file = (MYFILE); \
47ee9bcb 81 const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \
c53a8ab6
RS
82 int _hide_thissize = (MYLENGTH); \
83 { \
84 FILE *asm_out_file = _hide_asm_out_file; \
47ee9bcb 85 const unsigned char *p = _hide_p; \
c53a8ab6
RS
86 int thissize = _hide_thissize; \
87 int i; \
88 fprintf (asm_out_file, "\t.ascii \""); \
89 \
90 for (i = 0; i < thissize; i++) \
91 { \
b3694847 92 int c = p[i]; \
c53a8ab6
RS
93 if (c == '\"' || c == '\\') \
94 putc ('\\', asm_out_file); \
5f6d3823 95 if (ISPRINT(c)) \
c53a8ab6
RS
96 putc (c, asm_out_file); \
97 else \
98 { \
99 fprintf (asm_out_file, "\\%o", c); \
100 /* After an octal-escape, if a digit follows, \
101 terminate one string constant and start another. \
8aeea6e6 102 The VAX assembler fails to stop reading the escape \
c53a8ab6
RS
103 after three digits, so this is the only way we \
104 can get it to parse the data properly. */ \
d07ecc3b 105 if (i < thissize - 1 && ISDIGIT(p[i + 1])) \
c53a8ab6
RS
106 fprintf (asm_out_file, "\"\n\t.ascii \""); \
107 } \
108 } \
109 fprintf (asm_out_file, "\"\n"); \
110 } \
111 } \
112 while (0)
113#endif
d0d4af87 114
650f773a
JW
115/* This is how we tell the assembler to equate two values. */
116#ifdef SET_ASM_OP
117#ifndef ASM_OUTPUT_DEF
118#define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
e8638df0 119 do { fprintf ((FILE), "%s", SET_ASM_OP); \
650f773a
JW
120 assemble_name (FILE, LABEL1); \
121 fprintf (FILE, ","); \
122 assemble_name (FILE, LABEL2); \
123 fprintf (FILE, "\n"); \
124 } while (0)
125#endif
126#endif
daefd78b 127
083b6717
JDA
128/* Decide whether to defer emitting the assembler output for an equate
129 of two values. The default is to not defer output. */
130#ifndef TARGET_DEFERRED_OUTPUT_DEFS
131#define TARGET_DEFERRED_OUTPUT_DEFS(DECL,TARGET) false
132#endif
133
4ad5e05d
KG
134/* This is how to output the definition of a user-level label named
135 NAME, such as the label on a static function or variable NAME. */
136
137#ifndef ASM_OUTPUT_LABEL
138#define ASM_OUTPUT_LABEL(FILE,NAME) \
139 do { assemble_name ((FILE), (NAME)); fputs (":\n", (FILE)); } while (0)
140#endif
141
57829bc4
MM
142/* Output the definition of a compiler-generated label named NAME. */
143#ifndef ASM_OUTPUT_INTERNAL_LABEL
144#define ASM_OUTPUT_INTERNAL_LABEL(FILE,NAME) \
145 do { \
146 assemble_name_raw ((FILE), (NAME)); \
147 fputs (":\n", (FILE)); \
148 } while (0)
149#endif
150
81d77cda
RK
151/* This is how to output a reference to a user-level label named NAME. */
152
153#ifndef ASM_OUTPUT_LABELREF
19283265 154#define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME))
81d77cda
RK
155#endif
156
8215347e
JW
157/* Allow target to print debug info labels specially. This is useful for
158 VLIW targets, since debug info labels should go into the middle of
159 instruction bundles instead of breaking them. */
160
161#ifndef ASM_OUTPUT_DEBUG_LABEL
162#define ASM_OUTPUT_DEBUG_LABEL(FILE, PREFIX, NUM) \
4977bab6 163 (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM)
8215347e
JW
164#endif
165
3aa8ab7b 166/* This is how we tell the assembler that a symbol is weak. */
20c93f7c
RO
167#ifndef ASM_OUTPUT_WEAK_ALIAS
168#if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
3aa8ab7b
L
169#define ASM_OUTPUT_WEAK_ALIAS(STREAM, NAME, VALUE) \
170 do \
171 { \
172 ASM_WEAKEN_LABEL (STREAM, NAME); \
173 if (VALUE) \
174 ASM_OUTPUT_DEF (STREAM, NAME, VALUE); \
175 } \
176 while (0)
177#endif
20c93f7c 178#endif
3aa8ab7b 179
2be2ac70
ZW
180/* How to emit a .type directive. */
181#ifndef ASM_OUTPUT_TYPE_DIRECTIVE
182#if defined TYPE_ASM_OP && defined TYPE_OPERAND_FMT
183#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE) \
184 do \
185 { \
186 fputs (TYPE_ASM_OP, STREAM); \
187 assemble_name (STREAM, NAME); \
188 fputs (", ", STREAM); \
189 fprintf (STREAM, TYPE_OPERAND_FMT, TYPE); \
190 putc ('\n', STREAM); \
191 } \
192 while (0)
193#endif
194#endif
195
196/* How to emit a .size directive. */
197#ifndef ASM_OUTPUT_SIZE_DIRECTIVE
198#ifdef SIZE_ASM_OP
199#define ASM_OUTPUT_SIZE_DIRECTIVE(STREAM, NAME, SIZE) \
200 do \
201 { \
202 HOST_WIDE_INT size_ = (SIZE); \
203 fputs (SIZE_ASM_OP, STREAM); \
204 assemble_name (STREAM, NAME); \
90ff44cf 205 fprintf (STREAM, ", " HOST_WIDE_INT_PRINT_DEC "\n", size_); \
2be2ac70
ZW
206 } \
207 while (0)
208
99086d59 209#define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME) \
2be2ac70
ZW
210 do \
211 { \
212 fputs (SIZE_ASM_OP, STREAM); \
99086d59
ZW
213 assemble_name (STREAM, NAME); \
214 fputs (", .-", STREAM); \
215 assemble_name (STREAM, NAME); \
2be2ac70
ZW
216 putc ('\n', STREAM); \
217 } \
218 while (0)
219
220#endif
221#endif
222
daefd78b
JM
223/* This determines whether or not we support weak symbols. */
224#ifndef SUPPORTS_WEAK
79c4e63f 225#if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
daefd78b
JM
226#define SUPPORTS_WEAK 1
227#else
228#define SUPPORTS_WEAK 0
229#endif
230#endif
a6ab3aad 231
1ca894a0
MM
232/* This determines whether or not we support link-once semantics. */
233#ifndef SUPPORTS_ONE_ONLY
234#ifdef MAKE_DECL_ONE_ONLY
235#define SUPPORTS_ONE_ONLY 1
236#else
237#define SUPPORTS_ONE_ONLY 0
238#endif
239#endif
240
0524c91d
MA
241/* This determines whether weak symbols must be left out of a static
242 archive's table of contents. Defining this macro to be nonzero has
243 the consequence that certain symbols will not be made weak that
244 otherwise would be. The C++ ABI requires this macro to be zero;
8c27b7d4 245 see the documentation. */
0524c91d
MA
246#ifndef TARGET_WEAK_NOT_IN_ARCHIVE_TOC
247#define TARGET_WEAK_NOT_IN_ARCHIVE_TOC 0
4746cf84
MA
248#endif
249
ea4b7848 250/* This determines whether or not we need linkonce unwind information. */
4746cf84
MA
251#ifndef TARGET_USES_WEAK_UNWIND_INFO
252#define TARGET_USES_WEAK_UNWIND_INFO 0
253#endif
254
d48fd218
ZW
255/* By default, there is no prefix on user-defined symbols. */
256#ifndef USER_LABEL_PREFIX
257#define USER_LABEL_PREFIX ""
258#endif
259
8f08ea1e 260/* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
f676971a 261 provide a weak attribute. Else define it to nothing.
8f08ea1e 262
d02af173 263 This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
8f08ea1e
L
264 not available at that time.
265
266 Note, this is only for use by target files which we know are to be
267 compiled by GCC. */
268#ifndef TARGET_ATTRIBUTE_WEAK
269# if SUPPORTS_WEAK
270# define TARGET_ATTRIBUTE_WEAK __attribute__ ((weak))
271# else
272# define TARGET_ATTRIBUTE_WEAK
273# endif
274#endif
275
4746cf84 276/* Determines whether we may use common symbols to represent one-only
9cf737f8 277 semantics (a.k.a. "vague linkage"). */
4746cf84
MA
278#ifndef USE_COMMON_FOR_ONE_ONLY
279# define USE_COMMON_FOR_ONE_ONLY 1
280#endif
281
15072eb1
ZW
282/* By default we can assume that all global symbols are in one namespace,
283 across all shared libraries. */
284#ifndef MULTIPLE_SYMBOL_SPACES
285# define MULTIPLE_SYMBOL_SPACES 0
286#endif
4746cf84 287
ea4f1fce
JO
288/* If the target supports init_priority C++ attribute, give
289 SUPPORTS_INIT_PRIORITY a nonzero value. */
290#ifndef SUPPORTS_INIT_PRIORITY
291#define SUPPORTS_INIT_PRIORITY 1
292#endif /* SUPPORTS_INIT_PRIORITY */
293
5897739e
JO
294/* If duplicate library search directories can be removed from a
295 linker command without changing the linker's semantics, give this
296 symbol a nonzero. */
297#ifndef LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
298#define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 0
299#endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */
300
a6ab3aad
JM
301/* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
302 the rest of the DWARF 2 frame unwind support is also provided. */
0021b564
JM
303#if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX)
304#define DWARF2_UNWIND_INFO 1
a6ab3aad 305#endif
b366352b 306
2cc07db4
RH
307/* If we have named sections, and we're using crtstuff to run ctors,
308 use them for registering eh frame information. */
bc2a8f08
RH
309#if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
310 && !defined(EH_FRAME_IN_DATA_SECTION)
7c262518
RH
311#ifndef EH_FRAME_SECTION_NAME
312#define EH_FRAME_SECTION_NAME ".eh_frame"
313#endif
31cf0144
JM
314#endif
315
1a35e62d
MM
316/* On many systems, different EH table encodings are used under
317 difference circumstances. Some will require runtime relocations;
318 some will not. For those that do not require runtime relocations,
319 we would like to make the table read-only. However, since the
320 read-only tables may need to be combined with read-write tables
321 that do require runtime relocation, it is not safe to make the
322 tables read-only unless the linker will merge read-only and
323 read-write sections into a single read-write section. If your
324 linker does not have this ability, but your system is such that no
325 encoding used with non-PIC code will ever require a runtime
326 relocation, then you can define EH_TABLES_CAN_BE_READ_ONLY to 1 in
327 your target configuration file. */
328#ifndef EH_TABLES_CAN_BE_READ_ONLY
329#ifdef HAVE_LD_RO_RW_SECTION_MIXING
330#define EH_TABLES_CAN_BE_READ_ONLY 1
331#else
332#define EH_TABLES_CAN_BE_READ_ONLY 0
333#endif
334#endif
335
6351543d
AG
336/* If we have named section and we support weak symbols, then use the
337 .jcr section for recording java classes which need to be registered
338 at program start-up time. */
339#if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
340#ifndef JCR_SECTION_NAME
341#define JCR_SECTION_NAME ".jcr"
342#endif
343#endif
344
adb35797 345/* This decision to use a .jcr section can be overridden by defining
e50e6b88
DS
346 USE_JCR_SECTION to 0 in target file. This is necessary if target
347 can define JCR_SECTION_NAME but does not have crtstuff or
348 linker support for .jcr section. */
349#ifndef TARGET_USE_JCR_SECTION
350#ifdef JCR_SECTION_NAME
351#define TARGET_USE_JCR_SECTION 1
352#else
353#define TARGET_USE_JCR_SECTION 0
354#endif
355#endif
356
c478efd1
GDR
357/* Number of hardware registers that go into the DWARF-2 unwind info.
358 If not defined, equals FIRST_PSEUDO_REGISTER */
359
360#ifndef DWARF_FRAME_REGISTERS
361#define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
362#endif
d8ea8f28 363
4617e3b5
KG
364/* How to renumber registers for dbx and gdb. If not defined, assume
365 no renumbering is necessary. */
366
367#ifndef DBX_REGISTER_NUMBER
368#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
369#endif
370
d8ea8f28
ZW
371/* Default sizes for base C types. If the sizes are different for
372 your target, you should override these values by defining the
373 appropriate symbols in your tm.h file. */
374
5c60f03d
KG
375#ifndef BITS_PER_UNIT
376#define BITS_PER_UNIT 8
377#endif
378
e81dd381
KG
379#ifndef BITS_PER_WORD
380#define BITS_PER_WORD (BITS_PER_UNIT * UNITS_PER_WORD)
381#endif
382
d8ea8f28
ZW
383#ifndef CHAR_TYPE_SIZE
384#define CHAR_TYPE_SIZE BITS_PER_UNIT
385#endif
386
609688f3
JM
387#ifndef BOOL_TYPE_SIZE
388/* `bool' has size and alignment `1', on almost all platforms. */
389#define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
390#endif
391
d8ea8f28
ZW
392#ifndef SHORT_TYPE_SIZE
393#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
394#endif
395
396#ifndef INT_TYPE_SIZE
397#define INT_TYPE_SIZE BITS_PER_WORD
398#endif
399
400#ifndef LONG_TYPE_SIZE
401#define LONG_TYPE_SIZE BITS_PER_WORD
402#endif
403
404#ifndef LONG_LONG_TYPE_SIZE
405#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
406#endif
407
408#ifndef WCHAR_TYPE_SIZE
409#define WCHAR_TYPE_SIZE INT_TYPE_SIZE
410#endif
411
d8ea8f28
ZW
412#ifndef FLOAT_TYPE_SIZE
413#define FLOAT_TYPE_SIZE BITS_PER_WORD
414#endif
415
416#ifndef DOUBLE_TYPE_SIZE
417#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
418#endif
419
420#ifndef LONG_DOUBLE_TYPE_SIZE
421#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
422#endif
423
2465bf76
KG
424/* Width in bits of a pointer. Mind the value of the macro `Pmode'. */
425#ifndef POINTER_SIZE
426#define POINTER_SIZE BITS_PER_WORD
427#endif
428
848e0190
JH
429#ifndef PIC_OFFSET_TABLE_REGNUM
430#define PIC_OFFSET_TABLE_REGNUM INVALID_REGNUM
431#endif
432
b2ca3702
MM
433#ifndef TARGET_DLLIMPORT_DECL_ATTRIBUTES
434#define TARGET_DLLIMPORT_DECL_ATTRIBUTES 0
435#endif
436
63c5b495 437#ifndef TARGET_DECLSPEC
b2ca3702 438#if TARGET_DLLIMPORT_DECL_ATTRIBUTES
63c5b495
MM
439/* If the target supports the "dllimport" attribute, users are
440 probably used to the "__declspec" syntax. */
441#define TARGET_DECLSPEC 1
442#else
443#define TARGET_DECLSPEC 0
444#endif
445#endif
446
a9374841
MM
447/* By default, the preprocessor should be invoked the same way in C++
448 as in C. */
449#ifndef CPLUSPLUS_CPP_SPEC
450#ifdef CPP_SPEC
451#define CPLUSPLUS_CPP_SPEC CPP_SPEC
452#endif
453#endif
454
bf501a65
RH
455#ifndef ACCUMULATE_OUTGOING_ARGS
456#define ACCUMULATE_OUTGOING_ARGS 0
457#endif
458
459/* Supply a default definition for PUSH_ARGS. */
460#ifndef PUSH_ARGS
461#ifdef PUSH_ROUNDING
462#define PUSH_ARGS !ACCUMULATE_OUTGOING_ARGS
463#else
464#define PUSH_ARGS 0
465#endif
466#endif
467
9d6bef95
JM
468/* Decide whether a function's arguments should be processed
469 from first to last or from last to first.
470
471 They should if the stack and args grow in opposite directions, but
472 only if we have push insns. */
473
474#ifdef PUSH_ROUNDING
475
476#ifndef PUSH_ARGS_REVERSED
477#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
478#define PUSH_ARGS_REVERSED PUSH_ARGS
479#endif
480#endif
481
482#endif
483
484#ifndef PUSH_ARGS_REVERSED
485#define PUSH_ARGS_REVERSED 0
486#endif
487
31cdd499
ZW
488/* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
489 STACK_BOUNDARY is required. */
490#ifndef PREFERRED_STACK_BOUNDARY
491#define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY
492#endif
493
467cecf3
JB
494#ifndef TARGET_DEFAULT_PACK_STRUCT
495#define TARGET_DEFAULT_PACK_STRUCT 0
496#endif
497
67231816 498/* By default, the C++ compiler will use function addresses in the
cc2902df 499 vtable entries. Setting this nonzero tells the compiler to use
67231816 500 function descriptors instead. The value of this macro says how
f676971a 501 many words wide the descriptor is (normally 2). It is assumed
67231816
RH
502 that the address of a function descriptor may be treated as a
503 pointer to a function. */
504#ifndef TARGET_VTABLE_USES_DESCRIPTORS
505#define TARGET_VTABLE_USES_DESCRIPTORS 0
506#endif
507
a6f5e048
RH
508/* By default, the vtable entries are void pointers, the so the alignment
509 is the same as pointer alignment. The value of this macro specifies
510 the alignment of the vtable entry in bits. It should be defined only
4b7e68e7 511 when special alignment is necessary. */
a6f5e048
RH
512#ifndef TARGET_VTABLE_ENTRY_ALIGN
513#define TARGET_VTABLE_ENTRY_ALIGN POINTER_SIZE
514#endif
515
516/* There are a few non-descriptor entries in the vtable at offsets below
517 zero. If these entries must be padded (say, to preserve the alignment
518 specified by TARGET_VTABLE_ENTRY_ALIGN), set this to the number of
519 words in each data entry. */
520#ifndef TARGET_VTABLE_DATA_ENTRY_DISTANCE
521#define TARGET_VTABLE_DATA_ENTRY_DISTANCE 1
522#endif
523
4a77e08c
DS
524/* Decide whether it is safe to use a local alias for a virtual function
525 when constructing thunks. */
526#ifndef TARGET_USE_LOCAL_THUNK_ALIAS_P
527#ifdef ASM_OUTPUT_DEF
528#define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 1
529#else
530#define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 0
531#endif
532#endif
533
2a1ee410
RH
534/* Select a format to encode pointers in exception handling data. We
535 prefer those that result in fewer dynamic relocations. Assume no
536 special support here and encode direct references. */
537#ifndef ASM_PREFERRED_EH_DATA_FORMAT
538#define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) DW_EH_PE_absptr
539#endif
540
f3c55c97
AO
541/* By default, the C++ compiler will use the lowest bit of the pointer
542 to function to indicate a pointer-to-member-function points to a
543 virtual member function. However, if FUNCTION_BOUNDARY indicates
544 function addresses aren't always even, the lowest bit of the delta
545 field will be used. */
546#ifndef TARGET_PTRMEMFUNC_VBIT_LOCATION
547#define TARGET_PTRMEMFUNC_VBIT_LOCATION \
548 (FUNCTION_BOUNDARY >= 2 * BITS_PER_UNIT \
549 ? ptrmemfunc_vbit_in_pfn : ptrmemfunc_vbit_in_delta)
550#endif
551
5f0e9ea2
GK
552#ifndef DEFAULT_GDB_EXTENSIONS
553#define DEFAULT_GDB_EXTENSIONS 1
554#endif
555
556/* If more than one debugging type is supported, you must define
f8ca7e49 557 PREFERRED_DEBUGGING_TYPE to choose the default. */
5f0e9ea2 558
f8ca7e49
ZW
559#if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) \
560 + defined (DWARF2_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO) \
561 + defined (VMS_DEBUGGING_INFO))
5f0e9ea2 562#ifndef PREFERRED_DEBUGGING_TYPE
f8ca7e49 563#error You must define PREFERRED_DEBUGGING_TYPE
5f0e9ea2 564#endif /* no PREFERRED_DEBUGGING_TYPE */
f8ca7e49
ZW
565
566/* If only one debugging format is supported, define PREFERRED_DEBUGGING_TYPE
567 here so other code needn't care. */
568#elif defined DBX_DEBUGGING_INFO
5f0e9ea2 569#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
f8ca7e49
ZW
570
571#elif defined SDB_DEBUGGING_INFO
5f0e9ea2 572#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
f8ca7e49
ZW
573
574#elif defined DWARF2_DEBUGGING_INFO
5f0e9ea2 575#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
f8ca7e49
ZW
576
577#elif defined VMS_DEBUGGING_INFO
7a0c8d71 578#define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG
f8ca7e49
ZW
579
580#elif defined XCOFF_DEBUGGING_INFO
5f0e9ea2 581#define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
5f0e9ea2 582
f8ca7e49
ZW
583#else
584/* No debugging format is supported by this target. */
5f0e9ea2
GK
585#define PREFERRED_DEBUGGING_TYPE NO_DEBUG
586#endif
587
66d93b5a
RH
588/* Define codes for all the float formats that we know of. */
589#define UNKNOWN_FLOAT_FORMAT 0
590#define IEEE_FLOAT_FORMAT 1
591#define VAX_FLOAT_FORMAT 2
592#define IBM_FLOAT_FORMAT 3
593#define C4X_FLOAT_FORMAT 4
594
595/* Default to IEEE float if not specified. Nearly all machines use it. */
596#ifndef TARGET_FLOAT_FORMAT
597#define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
598#endif
599
888d2cd6
DJ
600/* Some macros can be defined by the backend in either a mode-dependent
601 or mode-independent form. The compiler proper should only use the
602 mode-dependent form, providing VOIDmode when the mode is unknown.
603 We can't poison the macros because the backend may reference them. */
604
605#ifndef REGNO_MODE_OK_FOR_BASE_P
606#define REGNO_MODE_OK_FOR_BASE_P(REGNO, MODE) REGNO_OK_FOR_BASE_P (REGNO)
607#endif
608
609#ifndef REG_MODE_OK_FOR_BASE_P
610#define REG_MODE_OK_FOR_BASE_P(REG, MODE) REG_OK_FOR_BASE_P (REG)
611#endif
612
3dcc68a4
NC
613/* Determine the register class for registers suitable to be the base
614 address register in a MEM. Allow the choice to be dependent upon
615 the mode of the memory access. */
616#ifndef MODE_BASE_REG_CLASS
617#define MODE_BASE_REG_CLASS(MODE) BASE_REG_CLASS
618#endif
619
888d2cd6
DJ
620/* Some machines require a different base register class if the index
621 is a register. By default, assume that a base register is acceptable. */
622#ifndef MODE_BASE_REG_REG_CLASS
623#define MODE_BASE_REG_REG_CLASS(MODE) MODE_BASE_REG_CLASS(MODE)
624#endif
625
626#ifndef REGNO_MODE_OK_FOR_REG_BASE_P
627#define REGNO_MODE_OK_FOR_REG_BASE_P(REGNO, MODE) REGNO_MODE_OK_FOR_BASE_P (REGNO, MODE)
628#endif
629
630#ifndef REG_MODE_OK_FOR_REG_BASE_P
631#define REG_MODE_OK_FOR_REG_BASE_P(REGNO, MODE) REG_MODE_OK_FOR_BASE_P (REGNO, MODE)
632#endif
633
3fcaac1d
RS
634#ifndef LARGEST_EXPONENT_IS_NORMAL
635#define LARGEST_EXPONENT_IS_NORMAL(SIZE) 0
636#endif
637
638#ifndef ROUND_TOWARDS_ZERO
639#define ROUND_TOWARDS_ZERO 0
640#endif
641
71925bc0 642#ifndef MODE_HAS_NANS
3fcaac1d
RS
643#define MODE_HAS_NANS(MODE) \
644 (FLOAT_MODE_P (MODE) \
645 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
646 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
71925bc0
RS
647#endif
648
649#ifndef MODE_HAS_INFINITIES
3fcaac1d
RS
650#define MODE_HAS_INFINITIES(MODE) \
651 (FLOAT_MODE_P (MODE) \
652 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
653 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
71925bc0
RS
654#endif
655
656#ifndef MODE_HAS_SIGNED_ZEROS
657#define MODE_HAS_SIGNED_ZEROS(MODE) \
658 (FLOAT_MODE_P (MODE) && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT)
659#endif
660
661#ifndef MODE_HAS_SIGN_DEPENDENT_ROUNDING
3fcaac1d
RS
662#define MODE_HAS_SIGN_DEPENDENT_ROUNDING(MODE) \
663 (FLOAT_MODE_P (MODE) \
664 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
665 && !ROUND_TOWARDS_ZERO)
71925bc0
RS
666#endif
667
c15c90bb
ZW
668#ifndef FLOAT_LIB_COMPARE_RETURNS_BOOL
669#define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) false
670#endif
671
6cb38cd4 672/* True if the targets integer-comparison functions return { 0, 1, 2
b3f8d95d
MM
673 } to indicate { <, ==, > }. False if { -1, 0, 1 } is used
674 instead. The libgcc routines are biased. */
675#ifndef TARGET_LIB_INT_CMP_BIASED
676#define TARGET_LIB_INT_CMP_BIASED (true)
677#endif
678
2d295af5
ZW
679/* If FLOAT_WORDS_BIG_ENDIAN is not defined in the header files,
680 then the word-endianness is the same as for integers. */
efdc7e19
RH
681#ifndef FLOAT_WORDS_BIG_ENDIAN
682#define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
683#endif
684
d57a4b98
RH
685#ifndef TARGET_FLT_EVAL_METHOD
686#define TARGET_FLT_EVAL_METHOD 0
687#endif
688
194734e9 689#ifndef HOT_TEXT_SECTION_NAME
3a4bdd05 690#define HOT_TEXT_SECTION_NAME ".text.hot"
194734e9
JH
691#endif
692
693#ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
3a4bdd05 694#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME ".text.unlikely"
194734e9
JH
695#endif
696
750054a2
CT
697#ifndef HAS_LONG_COND_BRANCH
698#define HAS_LONG_COND_BRANCH 0
699#endif
700
701#ifndef HAS_LONG_UNCOND_BRANCH
702#define HAS_LONG_UNCOND_BRANCH 0
703#endif
704
79fe1b3b
DN
705#ifndef UNITS_PER_SIMD_WORD
706#define UNITS_PER_SIMD_WORD 0
707#endif
708
4bafaa6f 709/* Determine whether __cxa_atexit, rather than atexit, is used to
4b7e68e7 710 register C++ destructors for local statics and global objects. */
4bafaa6f
L
711#ifndef DEFAULT_USE_CXA_ATEXIT
712#define DEFAULT_USE_CXA_ATEXIT 0
713#endif
714
ccfc6cc8
UW
715/* Determine whether extra constraint letter should be handled
716 via address reload (like 'o'). */
717#ifndef EXTRA_MEMORY_CONSTRAINT
97488870 718#define EXTRA_MEMORY_CONSTRAINT(C,STR) 0
ccfc6cc8
UW
719#endif
720
721/* Determine whether extra constraint letter should be handled
722 as an address (like 'p'). */
723#ifndef EXTRA_ADDRESS_CONSTRAINT
97488870
R
724#define EXTRA_ADDRESS_CONSTRAINT(C,STR) 0
725#endif
726
727/* When a port defines CONSTRAINT_LEN, it should use DEFAULT_CONSTRAINT_LEN
728 for all the characters that it does not want to change, so things like the
729 'length' of a digit in a matching constraint is an implementation detail,
730 and not part of the interface. */
731#define DEFAULT_CONSTRAINT_LEN(C,STR) 1
732
733#ifndef CONSTRAINT_LEN
734#define CONSTRAINT_LEN(C,STR) DEFAULT_CONSTRAINT_LEN (C, STR)
735#endif
736
737#if defined (CONST_OK_FOR_LETTER_P) && ! defined (CONST_OK_FOR_CONSTRAINT_P)
738#define CONST_OK_FOR_CONSTRAINT_P(VAL,C,STR) CONST_OK_FOR_LETTER_P (VAL, C)
739#endif
740
741#if defined (CONST_DOUBLE_OK_FOR_LETTER_P) && ! defined (CONST_DOUBLE_OK_FOR_CONSTRAINT_P)
742#define CONST_DOUBLE_OK_FOR_CONSTRAINT_P(OP,C,STR) \
743 CONST_DOUBLE_OK_FOR_LETTER_P (OP, C)
744#endif
745
3ff5ef1b 746#ifndef REG_CLASS_FROM_CONSTRAINT
97488870 747#define REG_CLASS_FROM_CONSTRAINT(C,STR) REG_CLASS_FROM_LETTER (C)
3ff5ef1b 748#endif
97488870
R
749
750#if defined (EXTRA_CONSTRAINT) && ! defined (EXTRA_CONSTRAINT_STR)
751#define EXTRA_CONSTRAINT_STR(OP, C,STR) EXTRA_CONSTRAINT (OP, C)
ccfc6cc8
UW
752#endif
753
37706dd1
HPN
754#ifndef REGISTER_MOVE_COST
755#define REGISTER_MOVE_COST(m, x, y) 2
756#endif
757
272f51a3
JH
758/* Determine whether the the entire c99 runtime
759 is present in the runtime library. */
760#ifndef TARGET_C99_FUNCTIONS
761#define TARGET_C99_FUNCTIONS 0
762#endif
763
7dba8395 764/* Indicate that CLZ and CTZ are undefined at zero. */
f676971a 765#ifndef CLZ_DEFINED_VALUE_AT_ZERO
7dba8395
RH
766#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
767#endif
f676971a 768#ifndef CTZ_DEFINED_VALUE_AT_ZERO
7dba8395
RH
769#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
770#endif
771
06f31100
RS
772/* Provide a default value for STORE_FLAG_VALUE. */
773#ifndef STORE_FLAG_VALUE
774#define STORE_FLAG_VALUE 1
775#endif
776
436bcda1
GK
777/* This macro is used to determine what the largest unit size that
778 move_by_pieces can use is. */
779
780/* MOVE_MAX_PIECES is the number of bytes at a time which we can
781 move efficiently, as opposed to MOVE_MAX which is the maximum
782 number of bytes we can move with a single instruction. */
783
784#ifndef MOVE_MAX_PIECES
785#define MOVE_MAX_PIECES MOVE_MAX
786#endif
787
a594a19c
GK
788#ifndef STACK_POINTER_OFFSET
789#define STACK_POINTER_OFFSET 0
790#endif
791
cca8fb0e
KH
792#ifndef LOCAL_REGNO
793#define LOCAL_REGNO(REGNO) 0
794#endif
795
9d05bbce
KH
796/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
797 the stack pointer does not matter. The value is tested only in
798 functions that have frame pointers. */
799#ifndef EXIT_IGNORE_STACK
800#define EXIT_IGNORE_STACK 0
801#endif
802
0ede749d
KH
803/* Assume that case vectors are not pc-relative. */
804#ifndef CASE_VECTOR_PC_RELATIVE
805#define CASE_VECTOR_PC_RELATIVE 0
806#endif
807
6de9cd9a
DN
808/* Assume that trampolines need function alignment. */
809#ifndef TRAMPOLINE_ALIGNMENT
810#define TRAMPOLINE_ALIGNMENT FUNCTION_BOUNDARY
811#endif
812
d220de0e
KH
813/* Register mappings for target machines without register windows. */
814#ifndef INCOMING_REGNO
815#define INCOMING_REGNO(N) (N)
816#endif
817
818#ifndef OUTGOING_REGNO
819#define OUTGOING_REGNO(N) (N)
820#endif
821
bee07d3f
KH
822#ifndef SHIFT_COUNT_TRUNCATED
823#define SHIFT_COUNT_TRUNCATED 0
824#endif
825
3e759eda
KH
826#ifndef LEGITIMIZE_ADDRESS
827#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
828#endif
829
2e4e72b1
ZW
830#ifndef LEGITIMATE_PIC_OPERAND_P
831#define LEGITIMATE_PIC_OPERAND_P(X) 1
832#endif
833
1f8551b2
KH
834#ifndef REVERSIBLE_CC_MODE
835#define REVERSIBLE_CC_MODE(MODE) 0
836#endif
837
07e15286
DE
838/* Biggest alignment supported by the object file format of this machine. */
839#ifndef MAX_OFILE_ALIGNMENT
840#define MAX_OFILE_ALIGNMENT BIGGEST_ALIGNMENT
841#endif
842
88657302 843#endif /* ! GCC_DEFAULTS_H */
This page took 2.304921 seconds and 5 git commands to generate.