defaults.h (GCOV_TYPE_SIZE): Remove.
[gcc.git] / gcc / defaults.h
1 /* Definitions of various defaults for tm.h macros.
2 Copyright (C) 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
3 Free Software Foundation, Inc.
4 Contributed by Ron Guilmette (rfg@monkeys.com)
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2, or (at your option) any later
11 version.
12
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING. If not, write to the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 02111-1307, USA. */
22
23 #ifndef GCC_DEFAULTS_H
24 #define GCC_DEFAULTS_H
25
26 #ifndef GET_ENVIRONMENT
27 #define GET_ENVIRONMENT(VALUE, NAME) do { (VALUE) = getenv (NAME); } while (0)
28 #endif
29
30 #define obstack_chunk_alloc ((void *(*) (long)) xmalloc)
31 #define obstack_chunk_free ((void (*) (void *)) free)
32 #define OBSTACK_CHUNK_SIZE 0
33 #define gcc_obstack_init(OBSTACK) \
34 _obstack_begin ((OBSTACK), OBSTACK_CHUNK_SIZE, 0, \
35 obstack_chunk_alloc, \
36 obstack_chunk_free)
37
38 /* Define default standard character escape sequences. */
39 #ifndef TARGET_BELL
40 # define TARGET_BELL 007
41 # define TARGET_BS 010
42 # define TARGET_TAB 011
43 # define TARGET_NEWLINE 012
44 # define TARGET_VT 013
45 # define TARGET_FF 014
46 # define TARGET_CR 015
47 # define TARGET_ESC 033
48 #endif
49
50 /* When removal of CPP_PREDEFINES is complete, TARGET_CPU_CPP_BULITINS
51 can also be removed from here. */
52 #ifndef TARGET_OS_CPP_BUILTINS
53 # define TARGET_OS_CPP_BUILTINS()
54 #endif
55 #ifndef TARGET_CPU_CPP_BUILTINS
56 # define TARGET_CPU_CPP_BUILTINS()
57 #endif
58 #ifndef CPP_PREDEFINES
59 # define CPP_PREDEFINES ""
60 #endif
61
62 /* Store in OUTPUT a string (made with alloca) containing an
63 assembler-name for a local static variable or function named NAME.
64 LABELNO is an integer which is different for each call. */
65
66 #ifndef ASM_PN_FORMAT
67 # ifndef NO_DOT_IN_LABEL
68 # define ASM_PN_FORMAT "%s.%lu"
69 # else
70 # ifndef NO_DOLLAR_IN_LABEL
71 # define ASM_PN_FORMAT "%s$%lu"
72 # else
73 # define ASM_PN_FORMAT "__%s_%lu"
74 # endif
75 # endif
76 #endif /* ! ASM_PN_FORMAT */
77
78 #ifndef ASM_FORMAT_PRIVATE_NAME
79 # define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \
80 do { const char *const name_ = (NAME); \
81 char *const output_ = (OUTPUT) = (char *) alloca (strlen (name_) + 32);\
82 sprintf (output_, ASM_PN_FORMAT, name_, (unsigned long)(LABELNO)); \
83 } while (0)
84 #endif
85
86 #ifndef ASM_STABD_OP
87 #define ASM_STABD_OP "\t.stabd\t"
88 #endif
89
90 /* This is how to output an element of a case-vector that is absolute.
91 Some targets don't use this, but we have to define it anyway. */
92
93 #ifndef ASM_OUTPUT_ADDR_VEC_ELT
94 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
95 do { fputs (integer_asm_op (POINTER_SIZE / UNITS_PER_WORD, TRUE), FILE); \
96 (*targetm.asm_out.internal_label) (FILE, "L", (VALUE)); \
97 fputc ('\n', FILE); \
98 } while (0)
99 #endif
100
101 /* choose a reasonable default for ASM_OUTPUT_ASCII. */
102
103 #ifndef ASM_OUTPUT_ASCII
104 #define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
105 do { \
106 FILE *_hide_asm_out_file = (MYFILE); \
107 const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \
108 int _hide_thissize = (MYLENGTH); \
109 { \
110 FILE *asm_out_file = _hide_asm_out_file; \
111 const unsigned char *p = _hide_p; \
112 int thissize = _hide_thissize; \
113 int i; \
114 fprintf (asm_out_file, "\t.ascii \""); \
115 \
116 for (i = 0; i < thissize; i++) \
117 { \
118 int c = p[i]; \
119 if (c == '\"' || c == '\\') \
120 putc ('\\', asm_out_file); \
121 if (ISPRINT(c)) \
122 putc (c, asm_out_file); \
123 else \
124 { \
125 fprintf (asm_out_file, "\\%o", c); \
126 /* After an octal-escape, if a digit follows, \
127 terminate one string constant and start another. \
128 The VAX assembler fails to stop reading the escape \
129 after three digits, so this is the only way we \
130 can get it to parse the data properly. */ \
131 if (i < thissize - 1 && ISDIGIT(p[i + 1])) \
132 fprintf (asm_out_file, "\"\n\t.ascii \""); \
133 } \
134 } \
135 fprintf (asm_out_file, "\"\n"); \
136 } \
137 } \
138 while (0)
139 #endif
140
141 /* This is how we tell the assembler to equate two values. */
142 #ifdef SET_ASM_OP
143 #ifndef ASM_OUTPUT_DEF
144 #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
145 do { fprintf ((FILE), "%s", SET_ASM_OP); \
146 assemble_name (FILE, LABEL1); \
147 fprintf (FILE, ","); \
148 assemble_name (FILE, LABEL2); \
149 fprintf (FILE, "\n"); \
150 } while (0)
151 #endif
152 #endif
153
154 /* This is how to output the definition of a user-level label named
155 NAME, such as the label on a static function or variable NAME. */
156
157 #ifndef ASM_OUTPUT_LABEL
158 #define ASM_OUTPUT_LABEL(FILE,NAME) \
159 do { assemble_name ((FILE), (NAME)); fputs (":\n", (FILE)); } while (0)
160 #endif
161
162 /* This is how to output a reference to a user-level label named NAME. */
163
164 #ifndef ASM_OUTPUT_LABELREF
165 #define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME))
166 #endif
167
168 /* Allow target to print debug info labels specially. This is useful for
169 VLIW targets, since debug info labels should go into the middle of
170 instruction bundles instead of breaking them. */
171
172 #ifndef ASM_OUTPUT_DEBUG_LABEL
173 #define ASM_OUTPUT_DEBUG_LABEL(FILE, PREFIX, NUM) \
174 (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM)
175 #endif
176
177 /* This is how we tell the assembler that a symbol is weak. */
178 #ifndef ASM_OUTPUT_WEAK_ALIAS
179 #if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
180 #define ASM_OUTPUT_WEAK_ALIAS(STREAM, NAME, VALUE) \
181 do \
182 { \
183 ASM_WEAKEN_LABEL (STREAM, NAME); \
184 if (VALUE) \
185 ASM_OUTPUT_DEF (STREAM, NAME, VALUE); \
186 } \
187 while (0)
188 #endif
189 #endif
190
191 /* How to emit a .type directive. */
192 #ifndef ASM_OUTPUT_TYPE_DIRECTIVE
193 #if defined TYPE_ASM_OP && defined TYPE_OPERAND_FMT
194 #define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE) \
195 do \
196 { \
197 fputs (TYPE_ASM_OP, STREAM); \
198 assemble_name (STREAM, NAME); \
199 fputs (", ", STREAM); \
200 fprintf (STREAM, TYPE_OPERAND_FMT, TYPE); \
201 putc ('\n', STREAM); \
202 } \
203 while (0)
204 #endif
205 #endif
206
207 /* How to emit a .size directive. */
208 #ifndef ASM_OUTPUT_SIZE_DIRECTIVE
209 #ifdef SIZE_ASM_OP
210 #define ASM_OUTPUT_SIZE_DIRECTIVE(STREAM, NAME, SIZE) \
211 do \
212 { \
213 HOST_WIDE_INT size_ = (SIZE); \
214 fputs (SIZE_ASM_OP, STREAM); \
215 assemble_name (STREAM, NAME); \
216 fputs (", ", STREAM); \
217 fprintf (STREAM, HOST_WIDE_INT_PRINT_DEC, size_); \
218 putc ('\n', STREAM); \
219 } \
220 while (0)
221
222 #define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME) \
223 do \
224 { \
225 fputs (SIZE_ASM_OP, STREAM); \
226 assemble_name (STREAM, NAME); \
227 fputs (", .-", STREAM); \
228 assemble_name (STREAM, NAME); \
229 putc ('\n', STREAM); \
230 } \
231 while (0)
232
233 #endif
234 #endif
235
236 /* This determines whether or not we support weak symbols. */
237 #ifndef SUPPORTS_WEAK
238 #if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
239 #define SUPPORTS_WEAK 1
240 #else
241 #define SUPPORTS_WEAK 0
242 #endif
243 #endif
244
245 /* This determines whether or not we support link-once semantics. */
246 #ifndef SUPPORTS_ONE_ONLY
247 #ifdef MAKE_DECL_ONE_ONLY
248 #define SUPPORTS_ONE_ONLY 1
249 #else
250 #define SUPPORTS_ONE_ONLY 0
251 #endif
252 #endif
253
254 /* By default, there is no prefix on user-defined symbols. */
255 #ifndef USER_LABEL_PREFIX
256 #define USER_LABEL_PREFIX ""
257 #endif
258
259 /* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
260 provide a weak attribute. Else define it to nothing.
261
262 This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
263 not available at that time.
264
265 Note, this is only for use by target files which we know are to be
266 compiled by GCC. */
267 #ifndef TARGET_ATTRIBUTE_WEAK
268 # if SUPPORTS_WEAK
269 # define TARGET_ATTRIBUTE_WEAK __attribute__ ((weak))
270 # else
271 # define TARGET_ATTRIBUTE_WEAK
272 # endif
273 #endif
274
275 /* If the target supports init_priority C++ attribute, give
276 SUPPORTS_INIT_PRIORITY a nonzero value. */
277 #ifndef SUPPORTS_INIT_PRIORITY
278 #define SUPPORTS_INIT_PRIORITY 1
279 #endif /* SUPPORTS_INIT_PRIORITY */
280
281 /* If duplicate library search directories can be removed from a
282 linker command without changing the linker's semantics, give this
283 symbol a nonzero. */
284 #ifndef LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
285 #define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 0
286 #endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */
287
288 /* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
289 the rest of the DWARF 2 frame unwind support is also provided. */
290 #if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX)
291 #define DWARF2_UNWIND_INFO 1
292 #endif
293
294 /* If we have named sections, and we're using crtstuff to run ctors,
295 use them for registering eh frame information. */
296 #if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
297 && !defined(EH_FRAME_IN_DATA_SECTION)
298 #ifndef EH_FRAME_SECTION_NAME
299 #define EH_FRAME_SECTION_NAME ".eh_frame"
300 #endif
301 #endif
302
303 /* If we have named section and we support weak symbols, then use the
304 .jcr section for recording java classes which need to be registered
305 at program start-up time. */
306 #if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
307 #ifndef JCR_SECTION_NAME
308 #define JCR_SECTION_NAME ".jcr"
309 #endif
310 #endif
311
312 /* By default, we generate a label at the beginning and end of the
313 text section, and compute the size of the text section by
314 subtracting the two. However, on some platforms that doesn't
315 work, and we use the section itself, rather than a label at the
316 beginning of it, to indicate the start of the section. On such
317 platforms, define this to zero. */
318 #ifndef DWARF2_GENERATE_TEXT_SECTION_LABEL
319 #define DWARF2_GENERATE_TEXT_SECTION_LABEL 1
320 #endif
321
322 /* Supply a default definition for PROMOTE_PROTOTYPES. */
323 #ifndef PROMOTE_PROTOTYPES
324 #define PROMOTE_PROTOTYPES 0
325 #endif
326
327 /* Number of hardware registers that go into the DWARF-2 unwind info.
328 If not defined, equals FIRST_PSEUDO_REGISTER */
329
330 #ifndef DWARF_FRAME_REGISTERS
331 #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
332 #endif
333
334 /* How to renumber registers for dbx and gdb. If not defined, assume
335 no renumbering is necessary. */
336
337 #ifndef DBX_REGISTER_NUMBER
338 #define DBX_REGISTER_NUMBER(REGNO) (REGNO)
339 #endif
340
341 /* Default sizes for base C types. If the sizes are different for
342 your target, you should override these values by defining the
343 appropriate symbols in your tm.h file. */
344
345 #ifndef BITS_PER_UNIT
346 #define BITS_PER_UNIT 8
347 #endif
348
349 #ifndef BITS_PER_WORD
350 #define BITS_PER_WORD (BITS_PER_UNIT * UNITS_PER_WORD)
351 #endif
352
353 #ifndef CHAR_TYPE_SIZE
354 #define CHAR_TYPE_SIZE BITS_PER_UNIT
355 #endif
356
357 #ifndef BOOL_TYPE_SIZE
358 /* `bool' has size and alignment `1', on almost all platforms. */
359 #define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
360 #endif
361
362 #ifndef SHORT_TYPE_SIZE
363 #define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
364 #endif
365
366 #ifndef INT_TYPE_SIZE
367 #define INT_TYPE_SIZE BITS_PER_WORD
368 #endif
369
370 #ifndef LONG_TYPE_SIZE
371 #define LONG_TYPE_SIZE BITS_PER_WORD
372 #endif
373
374 #ifndef LONG_LONG_TYPE_SIZE
375 #define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
376 #endif
377
378 #ifndef WCHAR_TYPE_SIZE
379 #define WCHAR_TYPE_SIZE INT_TYPE_SIZE
380 #endif
381
382 #ifndef FLOAT_TYPE_SIZE
383 #define FLOAT_TYPE_SIZE BITS_PER_WORD
384 #endif
385
386 #ifndef DOUBLE_TYPE_SIZE
387 #define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
388 #endif
389
390 #ifndef LONG_DOUBLE_TYPE_SIZE
391 #define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
392 #endif
393
394 /* Width in bits of a pointer. Mind the value of the macro `Pmode'. */
395 #ifndef POINTER_SIZE
396 #define POINTER_SIZE BITS_PER_WORD
397 #endif
398
399 #ifndef BUILD_VA_LIST_TYPE
400 #define BUILD_VA_LIST_TYPE(X) ((X) = ptr_type_node)
401 #endif
402
403 #ifndef PIC_OFFSET_TABLE_REGNUM
404 #define PIC_OFFSET_TABLE_REGNUM INVALID_REGNUM
405 #endif
406
407 /* By default, the preprocessor should be invoked the same way in C++
408 as in C. */
409 #ifndef CPLUSPLUS_CPP_SPEC
410 #ifdef CPP_SPEC
411 #define CPLUSPLUS_CPP_SPEC CPP_SPEC
412 #endif
413 #endif
414
415 #ifndef ACCUMULATE_OUTGOING_ARGS
416 #define ACCUMULATE_OUTGOING_ARGS 0
417 #endif
418
419 /* Supply a default definition for PUSH_ARGS. */
420 #ifndef PUSH_ARGS
421 #ifdef PUSH_ROUNDING
422 #define PUSH_ARGS !ACCUMULATE_OUTGOING_ARGS
423 #else
424 #define PUSH_ARGS 0
425 #endif
426 #endif
427
428 /* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
429 STACK_BOUNDARY is required. */
430 #ifndef PREFERRED_STACK_BOUNDARY
431 #define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY
432 #endif
433
434 /* By default, the C++ compiler will use function addresses in the
435 vtable entries. Setting this nonzero tells the compiler to use
436 function descriptors instead. The value of this macro says how
437 many words wide the descriptor is (normally 2). It is assumed
438 that the address of a function descriptor may be treated as a
439 pointer to a function. */
440 #ifndef TARGET_VTABLE_USES_DESCRIPTORS
441 #define TARGET_VTABLE_USES_DESCRIPTORS 0
442 #endif
443
444 /* By default, the vtable entries are void pointers, the so the alignment
445 is the same as pointer alignment. The value of this macro specifies
446 the alignment of the vtable entry in bits. It should be defined only
447 when special alignment is necessary. */
448 #ifndef TARGET_VTABLE_ENTRY_ALIGN
449 #define TARGET_VTABLE_ENTRY_ALIGN POINTER_SIZE
450 #endif
451
452 /* There are a few non-descriptor entries in the vtable at offsets below
453 zero. If these entries must be padded (say, to preserve the alignment
454 specified by TARGET_VTABLE_ENTRY_ALIGN), set this to the number of
455 words in each data entry. */
456 #ifndef TARGET_VTABLE_DATA_ENTRY_DISTANCE
457 #define TARGET_VTABLE_DATA_ENTRY_DISTANCE 1
458 #endif
459
460 /* Select a format to encode pointers in exception handling data. We
461 prefer those that result in fewer dynamic relocations. Assume no
462 special support here and encode direct references. */
463 #ifndef ASM_PREFERRED_EH_DATA_FORMAT
464 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) DW_EH_PE_absptr
465 #endif
466
467 /* By default, the C++ compiler will use the lowest bit of the pointer
468 to function to indicate a pointer-to-member-function points to a
469 virtual member function. However, if FUNCTION_BOUNDARY indicates
470 function addresses aren't always even, the lowest bit of the delta
471 field will be used. */
472 #ifndef TARGET_PTRMEMFUNC_VBIT_LOCATION
473 #define TARGET_PTRMEMFUNC_VBIT_LOCATION \
474 (FUNCTION_BOUNDARY >= 2 * BITS_PER_UNIT \
475 ? ptrmemfunc_vbit_in_pfn : ptrmemfunc_vbit_in_delta)
476 #endif
477
478 #ifndef DEFAULT_GDB_EXTENSIONS
479 #define DEFAULT_GDB_EXTENSIONS 1
480 #endif
481
482 /* If more than one debugging type is supported, you must define
483 PREFERRED_DEBUGGING_TYPE to choose a format in a system-dependent way.
484
485 This is one long line cause VAXC can't handle a \-newline. */
486 #if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) + defined (DWARF_DEBUGGING_INFO) + defined (DWARF2_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO) + defined (VMS_DEBUGGING_INFO))
487 #ifndef PREFERRED_DEBUGGING_TYPE
488 You Lose! You must define PREFERRED_DEBUGGING_TYPE!
489 #endif /* no PREFERRED_DEBUGGING_TYPE */
490 #else /* Only one debugging format supported. Define PREFERRED_DEBUGGING_TYPE
491 so other code needn't care. */
492 #ifdef DBX_DEBUGGING_INFO
493 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
494 #endif
495 #ifdef SDB_DEBUGGING_INFO
496 #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
497 #endif
498 #ifdef DWARF_DEBUGGING_INFO
499 #define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG
500 #endif
501 #ifdef DWARF2_DEBUGGING_INFO
502 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
503 #endif
504 #ifdef VMS_DEBUGGING_INFO
505 #define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG
506 #endif
507 #ifdef XCOFF_DEBUGGING_INFO
508 #define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
509 #endif
510 #endif /* More than one debugger format enabled. */
511
512 /* If still not defined, must have been because no debugging formats
513 are supported. */
514 #ifndef PREFERRED_DEBUGGING_TYPE
515 #define PREFERRED_DEBUGGING_TYPE NO_DEBUG
516 #endif
517
518 /* Define codes for all the float formats that we know of. */
519 #define UNKNOWN_FLOAT_FORMAT 0
520 #define IEEE_FLOAT_FORMAT 1
521 #define VAX_FLOAT_FORMAT 2
522 #define IBM_FLOAT_FORMAT 3
523 #define C4X_FLOAT_FORMAT 4
524
525 /* Default to IEEE float if not specified. Nearly all machines use it. */
526 #ifndef TARGET_FLOAT_FORMAT
527 #define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
528 #endif
529
530 /* Determine the register class for registers suitable to be the base
531 address register in a MEM. Allow the choice to be dependent upon
532 the mode of the memory access. */
533 #ifndef MODE_BASE_REG_CLASS
534 #define MODE_BASE_REG_CLASS(MODE) BASE_REG_CLASS
535 #endif
536
537 #ifndef LARGEST_EXPONENT_IS_NORMAL
538 #define LARGEST_EXPONENT_IS_NORMAL(SIZE) 0
539 #endif
540
541 #ifndef ROUND_TOWARDS_ZERO
542 #define ROUND_TOWARDS_ZERO 0
543 #endif
544
545 #ifndef MODE_HAS_NANS
546 #define MODE_HAS_NANS(MODE) \
547 (FLOAT_MODE_P (MODE) \
548 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
549 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
550 #endif
551
552 #ifndef MODE_HAS_INFINITIES
553 #define MODE_HAS_INFINITIES(MODE) \
554 (FLOAT_MODE_P (MODE) \
555 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
556 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
557 #endif
558
559 #ifndef MODE_HAS_SIGNED_ZEROS
560 #define MODE_HAS_SIGNED_ZEROS(MODE) \
561 (FLOAT_MODE_P (MODE) && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT)
562 #endif
563
564 #ifndef MODE_HAS_SIGN_DEPENDENT_ROUNDING
565 #define MODE_HAS_SIGN_DEPENDENT_ROUNDING(MODE) \
566 (FLOAT_MODE_P (MODE) \
567 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
568 && !ROUND_TOWARDS_ZERO)
569 #endif
570
571 /* If FLOAT_WORDS_BIG_ENDIAN is not defined in the header files,
572 then the word-endianness is the same as for integers. */
573 #ifndef FLOAT_WORDS_BIG_ENDIAN
574 #define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
575 #endif
576
577 #ifndef TARGET_FLT_EVAL_METHOD
578 #define TARGET_FLT_EVAL_METHOD 0
579 #endif
580
581 #ifndef HOT_TEXT_SECTION_NAME
582 #define HOT_TEXT_SECTION_NAME "text.hot"
583 #endif
584
585 #ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
586 #define UNLIKELY_EXECUTED_TEXT_SECTION_NAME "text.unlikely"
587 #endif
588
589 #ifndef VECTOR_MODE_SUPPORTED_P
590 #define VECTOR_MODE_SUPPORTED_P(MODE) 0
591 #endif
592
593 /* Determine whether __cxa_atexit, rather than atexit, is used to
594 register C++ destructors for local statics and global objects. */
595 #ifndef DEFAULT_USE_CXA_ATEXIT
596 #define DEFAULT_USE_CXA_ATEXIT 0
597 #endif
598
599 /* Determine whether extra constraint letter should be handled
600 via address reload (like 'o'). */
601 #ifndef EXTRA_MEMORY_CONSTRAINT
602 #define EXTRA_MEMORY_CONSTRAINT(C,STR) 0
603 #endif
604
605 /* Determine whether extra constraint letter should be handled
606 as an address (like 'p'). */
607 #ifndef EXTRA_ADDRESS_CONSTRAINT
608 #define EXTRA_ADDRESS_CONSTRAINT(C,STR) 0
609 #endif
610
611 /* When a port defines CONSTRAINT_LEN, it should use DEFAULT_CONSTRAINT_LEN
612 for all the characters that it does not want to change, so things like the
613 'length' of a digit in a matching constraint is an implementation detail,
614 and not part of the interface. */
615 #define DEFAULT_CONSTRAINT_LEN(C,STR) 1
616
617 #ifndef CONSTRAINT_LEN
618 #define CONSTRAINT_LEN(C,STR) DEFAULT_CONSTRAINT_LEN (C, STR)
619 #endif
620
621 #if defined (CONST_OK_FOR_LETTER_P) && ! defined (CONST_OK_FOR_CONSTRAINT_P)
622 #define CONST_OK_FOR_CONSTRAINT_P(VAL,C,STR) CONST_OK_FOR_LETTER_P (VAL, C)
623 #endif
624
625 #if defined (CONST_DOUBLE_OK_FOR_LETTER_P) && ! defined (CONST_DOUBLE_OK_FOR_CONSTRAINT_P)
626 #define CONST_DOUBLE_OK_FOR_CONSTRAINT_P(OP,C,STR) \
627 CONST_DOUBLE_OK_FOR_LETTER_P (OP, C)
628 #endif
629
630 #define REG_CLASS_FROM_CONSTRAINT(C,STR) REG_CLASS_FROM_LETTER (C)
631
632 #if defined (EXTRA_CONSTRAINT) && ! defined (EXTRA_CONSTRAINT_STR)
633 #define EXTRA_CONSTRAINT_STR(OP, C,STR) EXTRA_CONSTRAINT (OP, C)
634 #endif
635
636 /* Determine whether the the entire c99 runtime
637 is present in the runtime library. */
638 #ifndef TARGET_C99_FUNCTIONS
639 #define TARGET_C99_FUNCTIONS 0
640 #endif
641
642 /* Indicate that CLZ and CTZ are undefined at zero. */
643 #ifndef CLZ_DEFINED_VALUE_AT_ZERO
644 #define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
645 #endif
646 #ifndef CTZ_DEFINED_VALUE_AT_ZERO
647 #define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
648 #endif
649
650 #endif /* ! GCC_DEFAULTS_H */