* tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
[official-gcc.git] / gcc / defaults.h
blobb2384090849547da745c35705b8c68385cdbf8c3
1 /* Definitions of various defaults for tm.h macros.
2 Copyright (C) 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
3 Free Software Foundation, Inc.
4 Contributed by Ron Guilmette (rfg@monkeys.com)
6 This file is part of GCC.
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.
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.
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. */
23 #ifndef GCC_DEFAULTS_H
24 #define GCC_DEFAULTS_H
26 #ifndef GET_ENVIRONMENT
27 #define GET_ENVIRONMENT(VALUE, NAME) do { (VALUE) = getenv (NAME); } while (0)
28 #endif
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)
38 /* Define default standard character escape sequences. */
39 #ifndef TARGET_BELL
40 # define TARGET_BELL 007
41 # define TARGET_BS 010
42 # define TARGET_CR 015
43 # define TARGET_DIGIT0 060
44 # define TARGET_ESC 033
45 # define TARGET_FF 014
46 # define TARGET_NEWLINE 012
47 # define TARGET_TAB 011
48 # define TARGET_VT 013
49 #endif
51 /* Store in OUTPUT a string (made with alloca) containing an
52 assembler-name for a local static variable or function named NAME.
53 LABELNO is an integer which is different for each call. */
55 #ifndef ASM_PN_FORMAT
56 # ifndef NO_DOT_IN_LABEL
57 # define ASM_PN_FORMAT "%s.%lu"
58 # else
59 # ifndef NO_DOLLAR_IN_LABEL
60 # define ASM_PN_FORMAT "%s$%lu"
61 # else
62 # define ASM_PN_FORMAT "__%s_%lu"
63 # endif
64 # endif
65 #endif /* ! ASM_PN_FORMAT */
67 #ifndef ASM_FORMAT_PRIVATE_NAME
68 # define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \
69 do { const char *const name_ = (NAME); \
70 char *const output_ = (OUTPUT) = alloca (strlen (name_) + 32);\
71 sprintf (output_, ASM_PN_FORMAT, name_, (unsigned long)(LABELNO)); \
72 } while (0)
73 #endif
75 #ifndef ASM_STABD_OP
76 #define ASM_STABD_OP "\t.stabd\t"
77 #endif
79 /* This is how to output an element of a case-vector that is absolute.
80 Some targets don't use this, but we have to define it anyway. */
82 #ifndef ASM_OUTPUT_ADDR_VEC_ELT
83 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
84 do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
85 (*targetm.asm_out.internal_label) (FILE, "L", (VALUE)); \
86 fputc ('\n', FILE); \
87 } while (0)
88 #endif
90 /* Choose a reasonable default for ASM_OUTPUT_ASCII. */
92 #ifndef ASM_OUTPUT_ASCII
93 #define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
94 do { \
95 FILE *_hide_asm_out_file = (MYFILE); \
96 const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \
97 int _hide_thissize = (MYLENGTH); \
98 { \
99 FILE *asm_out_file = _hide_asm_out_file; \
100 const unsigned char *p = _hide_p; \
101 int thissize = _hide_thissize; \
102 int i; \
103 fprintf (asm_out_file, "\t.ascii \""); \
105 for (i = 0; i < thissize; i++) \
107 int c = p[i]; \
108 if (c == '\"' || c == '\\') \
109 putc ('\\', asm_out_file); \
110 if (ISPRINT(c)) \
111 putc (c, asm_out_file); \
112 else \
114 fprintf (asm_out_file, "\\%o", c); \
115 /* After an octal-escape, if a digit follows, \
116 terminate one string constant and start another. \
117 The VAX assembler fails to stop reading the escape \
118 after three digits, so this is the only way we \
119 can get it to parse the data properly. */ \
120 if (i < thissize - 1 && ISDIGIT(p[i + 1])) \
121 fprintf (asm_out_file, "\"\n\t.ascii \""); \
124 fprintf (asm_out_file, "\"\n"); \
127 while (0)
128 #endif
130 /* This is how we tell the assembler to equate two values. */
131 #ifdef SET_ASM_OP
132 #ifndef ASM_OUTPUT_DEF
133 #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
134 do { fprintf ((FILE), "%s", SET_ASM_OP); \
135 assemble_name (FILE, LABEL1); \
136 fprintf (FILE, ","); \
137 assemble_name (FILE, LABEL2); \
138 fprintf (FILE, "\n"); \
139 } while (0)
140 #endif
141 #endif
143 /* This is how to output the definition of a user-level label named
144 NAME, such as the label on a static function or variable NAME. */
146 #ifndef ASM_OUTPUT_LABEL
147 #define ASM_OUTPUT_LABEL(FILE,NAME) \
148 do { assemble_name ((FILE), (NAME)); fputs (":\n", (FILE)); } while (0)
149 #endif
151 /* This is how to output a reference to a user-level label named NAME. */
153 #ifndef ASM_OUTPUT_LABELREF
154 #define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME))
155 #endif
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. */
161 #ifndef ASM_OUTPUT_DEBUG_LABEL
162 #define ASM_OUTPUT_DEBUG_LABEL(FILE, PREFIX, NUM) \
163 (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM)
164 #endif
166 /* This is how we tell the assembler that a symbol is weak. */
167 #ifndef ASM_OUTPUT_WEAK_ALIAS
168 #if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
169 #define ASM_OUTPUT_WEAK_ALIAS(STREAM, NAME, VALUE) \
170 do \
172 ASM_WEAKEN_LABEL (STREAM, NAME); \
173 if (VALUE) \
174 ASM_OUTPUT_DEF (STREAM, NAME, VALUE); \
176 while (0)
177 #endif
178 #endif
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 \
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); \
192 while (0)
193 #endif
194 #endif
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 \
202 HOST_WIDE_INT size_ = (SIZE); \
203 fputs (SIZE_ASM_OP, STREAM); \
204 assemble_name (STREAM, NAME); \
205 fprintf (STREAM, ", " HOST_WIDE_INT_PRINT_DEC "\n", size_); \
207 while (0)
209 #define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME) \
210 do \
212 fputs (SIZE_ASM_OP, STREAM); \
213 assemble_name (STREAM, NAME); \
214 fputs (", .-", STREAM); \
215 assemble_name (STREAM, NAME); \
216 putc ('\n', STREAM); \
218 while (0)
220 #endif
221 #endif
223 /* This determines whether or not we support weak symbols. */
224 #ifndef SUPPORTS_WEAK
225 #if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
226 #define SUPPORTS_WEAK 1
227 #else
228 #define SUPPORTS_WEAK 0
229 #endif
230 #endif
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
241 /* Determines whether explicit template instantiations should
242 be given link-once semantics. The C++ ABI requires this
243 macro to be nonzero; see the documentation. */
244 #ifndef TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY
245 # define TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY 1
246 #endif
248 /* This determines whether or not we need linkonce unwind information */
249 #ifndef TARGET_USES_WEAK_UNWIND_INFO
250 #define TARGET_USES_WEAK_UNWIND_INFO 0
251 #endif
253 /* By default, there is no prefix on user-defined symbols. */
254 #ifndef USER_LABEL_PREFIX
255 #define USER_LABEL_PREFIX ""
256 #endif
258 /* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
259 provide a weak attribute. Else define it to nothing.
261 This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
262 not available at that time.
264 Note, this is only for use by target files which we know are to be
265 compiled by GCC. */
266 #ifndef TARGET_ATTRIBUTE_WEAK
267 # if SUPPORTS_WEAK
268 # define TARGET_ATTRIBUTE_WEAK __attribute__ ((weak))
269 # else
270 # define TARGET_ATTRIBUTE_WEAK
271 # endif
272 #endif
274 /* This determines whether this target supports hidden visibility.
275 This is a weaker condition than HAVE_GAS_HIDDEN, which probes for
276 specific assembler syntax. */
277 #ifndef TARGET_SUPPORTS_HIDDEN
278 # ifdef HAVE_GAS_HIDDEN
279 # define TARGET_SUPPORTS_HIDDEN 1
280 # else
281 # define TARGET_SUPPORTS_HIDDEN 0
282 # endif
283 #endif
285 /* Determines whether we may use common symbols to represent one-only
286 semantics (a.k.a. "vague linkage"). */
287 #ifndef USE_COMMON_FOR_ONE_ONLY
288 # define USE_COMMON_FOR_ONE_ONLY 1
289 #endif
292 /* If the target supports init_priority C++ attribute, give
293 SUPPORTS_INIT_PRIORITY a nonzero value. */
294 #ifndef SUPPORTS_INIT_PRIORITY
295 #define SUPPORTS_INIT_PRIORITY 1
296 #endif /* SUPPORTS_INIT_PRIORITY */
298 /* If duplicate library search directories can be removed from a
299 linker command without changing the linker's semantics, give this
300 symbol a nonzero. */
301 #ifndef LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
302 #define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 0
303 #endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */
305 /* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
306 the rest of the DWARF 2 frame unwind support is also provided. */
307 #if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX)
308 #define DWARF2_UNWIND_INFO 1
309 #endif
311 /* If we have named sections, and we're using crtstuff to run ctors,
312 use them for registering eh frame information. */
313 #if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
314 && !defined(EH_FRAME_IN_DATA_SECTION)
315 #ifndef EH_FRAME_SECTION_NAME
316 #define EH_FRAME_SECTION_NAME ".eh_frame"
317 #endif
318 #endif
320 /* If we have named section and we support weak symbols, then use the
321 .jcr section for recording java classes which need to be registered
322 at program start-up time. */
323 #if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
324 #ifndef JCR_SECTION_NAME
325 #define JCR_SECTION_NAME ".jcr"
326 #endif
327 #endif
329 /* By default, we generate a label at the beginning and end of the
330 text section, and compute the size of the text section by
331 subtracting the two. However, on some platforms that doesn't
332 work, and we use the section itself, rather than a label at the
333 beginning of it, to indicate the start of the section. On such
334 platforms, define this to zero. */
335 #ifndef DWARF2_GENERATE_TEXT_SECTION_LABEL
336 #define DWARF2_GENERATE_TEXT_SECTION_LABEL 1
337 #endif
339 /* Number of hardware registers that go into the DWARF-2 unwind info.
340 If not defined, equals FIRST_PSEUDO_REGISTER */
342 #ifndef DWARF_FRAME_REGISTERS
343 #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
344 #endif
346 /* How to renumber registers for dbx and gdb. If not defined, assume
347 no renumbering is necessary. */
349 #ifndef DBX_REGISTER_NUMBER
350 #define DBX_REGISTER_NUMBER(REGNO) (REGNO)
351 #endif
353 /* Default sizes for base C types. If the sizes are different for
354 your target, you should override these values by defining the
355 appropriate symbols in your tm.h file. */
357 #ifndef BITS_PER_UNIT
358 #define BITS_PER_UNIT 8
359 #endif
361 #ifndef BITS_PER_WORD
362 #define BITS_PER_WORD (BITS_PER_UNIT * UNITS_PER_WORD)
363 #endif
365 #ifndef CHAR_TYPE_SIZE
366 #define CHAR_TYPE_SIZE BITS_PER_UNIT
367 #endif
369 #ifndef BOOL_TYPE_SIZE
370 /* `bool' has size and alignment `1', on almost all platforms. */
371 #define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
372 #endif
374 #ifndef SHORT_TYPE_SIZE
375 #define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
376 #endif
378 #ifndef INT_TYPE_SIZE
379 #define INT_TYPE_SIZE BITS_PER_WORD
380 #endif
382 #ifndef LONG_TYPE_SIZE
383 #define LONG_TYPE_SIZE BITS_PER_WORD
384 #endif
386 #ifndef LONG_LONG_TYPE_SIZE
387 #define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
388 #endif
390 #ifndef WCHAR_TYPE_SIZE
391 #define WCHAR_TYPE_SIZE INT_TYPE_SIZE
392 #endif
394 #ifndef FLOAT_TYPE_SIZE
395 #define FLOAT_TYPE_SIZE BITS_PER_WORD
396 #endif
398 #ifndef DOUBLE_TYPE_SIZE
399 #define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
400 #endif
402 #ifndef LONG_DOUBLE_TYPE_SIZE
403 #define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
404 #endif
406 /* Width in bits of a pointer. Mind the value of the macro `Pmode'. */
407 #ifndef POINTER_SIZE
408 #define POINTER_SIZE BITS_PER_WORD
409 #endif
411 #ifndef PIC_OFFSET_TABLE_REGNUM
412 #define PIC_OFFSET_TABLE_REGNUM INVALID_REGNUM
413 #endif
415 /* By default, the preprocessor should be invoked the same way in C++
416 as in C. */
417 #ifndef CPLUSPLUS_CPP_SPEC
418 #ifdef CPP_SPEC
419 #define CPLUSPLUS_CPP_SPEC CPP_SPEC
420 #endif
421 #endif
423 #ifndef ACCUMULATE_OUTGOING_ARGS
424 #define ACCUMULATE_OUTGOING_ARGS 0
425 #endif
427 /* Supply a default definition for PUSH_ARGS. */
428 #ifndef PUSH_ARGS
429 #ifdef PUSH_ROUNDING
430 #define PUSH_ARGS !ACCUMULATE_OUTGOING_ARGS
431 #else
432 #define PUSH_ARGS 0
433 #endif
434 #endif
436 /* Decide whether a function's arguments should be processed
437 from first to last or from last to first.
439 They should if the stack and args grow in opposite directions, but
440 only if we have push insns. */
442 #ifdef PUSH_ROUNDING
444 #ifndef PUSH_ARGS_REVERSED
445 #if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
446 #define PUSH_ARGS_REVERSED PUSH_ARGS
447 #endif
448 #endif
450 #endif
452 #ifndef PUSH_ARGS_REVERSED
453 #define PUSH_ARGS_REVERSED 0
454 #endif
456 /* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
457 STACK_BOUNDARY is required. */
458 #ifndef PREFERRED_STACK_BOUNDARY
459 #define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY
460 #endif
462 /* By default, the C++ compiler will use function addresses in the
463 vtable entries. Setting this nonzero tells the compiler to use
464 function descriptors instead. The value of this macro says how
465 many words wide the descriptor is (normally 2). It is assumed
466 that the address of a function descriptor may be treated as a
467 pointer to a function. */
468 #ifndef TARGET_VTABLE_USES_DESCRIPTORS
469 #define TARGET_VTABLE_USES_DESCRIPTORS 0
470 #endif
472 /* By default, the vtable entries are void pointers, the so the alignment
473 is the same as pointer alignment. The value of this macro specifies
474 the alignment of the vtable entry in bits. It should be defined only
475 when special alignment is necessary. */
476 #ifndef TARGET_VTABLE_ENTRY_ALIGN
477 #define TARGET_VTABLE_ENTRY_ALIGN POINTER_SIZE
478 #endif
480 /* There are a few non-descriptor entries in the vtable at offsets below
481 zero. If these entries must be padded (say, to preserve the alignment
482 specified by TARGET_VTABLE_ENTRY_ALIGN), set this to the number of
483 words in each data entry. */
484 #ifndef TARGET_VTABLE_DATA_ENTRY_DISTANCE
485 #define TARGET_VTABLE_DATA_ENTRY_DISTANCE 1
486 #endif
488 /* Decide whether it is safe to use a local alias for a virtual function
489 when constructing thunks. */
490 #ifndef TARGET_USE_LOCAL_THUNK_ALIAS_P
491 #ifdef ASM_OUTPUT_DEF
492 #define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 1
493 #else
494 #define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 0
495 #endif
496 #endif
498 /* Select a format to encode pointers in exception handling data. We
499 prefer those that result in fewer dynamic relocations. Assume no
500 special support here and encode direct references. */
501 #ifndef ASM_PREFERRED_EH_DATA_FORMAT
502 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) DW_EH_PE_absptr
503 #endif
505 /* By default, the C++ compiler will use the lowest bit of the pointer
506 to function to indicate a pointer-to-member-function points to a
507 virtual member function. However, if FUNCTION_BOUNDARY indicates
508 function addresses aren't always even, the lowest bit of the delta
509 field will be used. */
510 #ifndef TARGET_PTRMEMFUNC_VBIT_LOCATION
511 #define TARGET_PTRMEMFUNC_VBIT_LOCATION \
512 (FUNCTION_BOUNDARY >= 2 * BITS_PER_UNIT \
513 ? ptrmemfunc_vbit_in_pfn : ptrmemfunc_vbit_in_delta)
514 #endif
516 #ifndef DEFAULT_GDB_EXTENSIONS
517 #define DEFAULT_GDB_EXTENSIONS 1
518 #endif
520 /* If more than one debugging type is supported, you must define
521 PREFERRED_DEBUGGING_TYPE to choose a format in a system-dependent way.
523 This is one long line cause VAXC can't handle a \-newline. */
524 #if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) + defined (DWARF2_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO) + defined (VMS_DEBUGGING_INFO))
525 #ifndef PREFERRED_DEBUGGING_TYPE
526 You Lose! You must define PREFERRED_DEBUGGING_TYPE!
527 #endif /* no PREFERRED_DEBUGGING_TYPE */
528 #else /* Only one debugging format supported. Define PREFERRED_DEBUGGING_TYPE
529 so other code needn't care. */
530 #ifdef DBX_DEBUGGING_INFO
531 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
532 #endif
533 #ifdef SDB_DEBUGGING_INFO
534 #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
535 #endif
536 #ifdef DWARF_DEBUGGING_INFO
537 #define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG
538 #endif
539 #ifdef DWARF2_DEBUGGING_INFO
540 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
541 #endif
542 #ifdef VMS_DEBUGGING_INFO
543 #define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG
544 #endif
545 #ifdef XCOFF_DEBUGGING_INFO
546 #define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
547 #endif
548 #endif /* More than one debugger format enabled. */
550 /* If still not defined, must have been because no debugging formats
551 are supported. */
552 #ifndef PREFERRED_DEBUGGING_TYPE
553 #define PREFERRED_DEBUGGING_TYPE NO_DEBUG
554 #endif
556 /* Define codes for all the float formats that we know of. */
557 #define UNKNOWN_FLOAT_FORMAT 0
558 #define IEEE_FLOAT_FORMAT 1
559 #define VAX_FLOAT_FORMAT 2
560 #define IBM_FLOAT_FORMAT 3
561 #define C4X_FLOAT_FORMAT 4
563 /* Default to IEEE float if not specified. Nearly all machines use it. */
564 #ifndef TARGET_FLOAT_FORMAT
565 #define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
566 #endif
568 /* Determine the register class for registers suitable to be the base
569 address register in a MEM. Allow the choice to be dependent upon
570 the mode of the memory access. */
571 #ifndef MODE_BASE_REG_CLASS
572 #define MODE_BASE_REG_CLASS(MODE) BASE_REG_CLASS
573 #endif
575 #ifndef LARGEST_EXPONENT_IS_NORMAL
576 #define LARGEST_EXPONENT_IS_NORMAL(SIZE) 0
577 #endif
579 #ifndef ROUND_TOWARDS_ZERO
580 #define ROUND_TOWARDS_ZERO 0
581 #endif
583 #ifndef MODE_HAS_NANS
584 #define MODE_HAS_NANS(MODE) \
585 (FLOAT_MODE_P (MODE) \
586 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
587 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
588 #endif
590 #ifndef MODE_HAS_INFINITIES
591 #define MODE_HAS_INFINITIES(MODE) \
592 (FLOAT_MODE_P (MODE) \
593 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
594 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
595 #endif
597 #ifndef MODE_HAS_SIGNED_ZEROS
598 #define MODE_HAS_SIGNED_ZEROS(MODE) \
599 (FLOAT_MODE_P (MODE) && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT)
600 #endif
602 #ifndef MODE_HAS_SIGN_DEPENDENT_ROUNDING
603 #define MODE_HAS_SIGN_DEPENDENT_ROUNDING(MODE) \
604 (FLOAT_MODE_P (MODE) \
605 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
606 && !ROUND_TOWARDS_ZERO)
607 #endif
609 #ifndef FLOAT_LIB_COMPARE_RETURNS_BOOL
610 #define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) false
611 #endif
613 /* If FLOAT_WORDS_BIG_ENDIAN is not defined in the header files,
614 then the word-endianness is the same as for integers. */
615 #ifndef FLOAT_WORDS_BIG_ENDIAN
616 #define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
617 #endif
619 #ifndef TARGET_FLT_EVAL_METHOD
620 #define TARGET_FLT_EVAL_METHOD 0
621 #endif
623 #ifndef HOT_TEXT_SECTION_NAME
624 #define HOT_TEXT_SECTION_NAME ".text.hot"
625 #endif
627 #ifndef NORMAL_TEXT_SECTION_NAME
628 #define NORMAL_TEXT_SECTION_NAME ".text"
629 #endif
631 #ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
632 #define UNLIKELY_EXECUTED_TEXT_SECTION_NAME ".text.unlikely"
633 #endif
635 #ifndef HAS_LONG_COND_BRANCH
636 #define HAS_LONG_COND_BRANCH 0
637 #endif
639 #ifndef HAS_LONG_UNCOND_BRANCH
640 #define HAS_LONG_UNCOND_BRANCH 0
641 #endif
643 #ifndef VECTOR_MODE_SUPPORTED_P
644 #define VECTOR_MODE_SUPPORTED_P(MODE) 0
645 #endif
647 /* Determine whether __cxa_atexit, rather than atexit, is used to
648 register C++ destructors for local statics and global objects. */
649 #ifndef DEFAULT_USE_CXA_ATEXIT
650 #define DEFAULT_USE_CXA_ATEXIT 0
651 #endif
653 /* Determine whether extra constraint letter should be handled
654 via address reload (like 'o'). */
655 #ifndef EXTRA_MEMORY_CONSTRAINT
656 #define EXTRA_MEMORY_CONSTRAINT(C,STR) 0
657 #endif
659 /* Determine whether extra constraint letter should be handled
660 as an address (like 'p'). */
661 #ifndef EXTRA_ADDRESS_CONSTRAINT
662 #define EXTRA_ADDRESS_CONSTRAINT(C,STR) 0
663 #endif
665 /* When a port defines CONSTRAINT_LEN, it should use DEFAULT_CONSTRAINT_LEN
666 for all the characters that it does not want to change, so things like the
667 'length' of a digit in a matching constraint is an implementation detail,
668 and not part of the interface. */
669 #define DEFAULT_CONSTRAINT_LEN(C,STR) 1
671 #ifndef CONSTRAINT_LEN
672 #define CONSTRAINT_LEN(C,STR) DEFAULT_CONSTRAINT_LEN (C, STR)
673 #endif
675 #if defined (CONST_OK_FOR_LETTER_P) && ! defined (CONST_OK_FOR_CONSTRAINT_P)
676 #define CONST_OK_FOR_CONSTRAINT_P(VAL,C,STR) CONST_OK_FOR_LETTER_P (VAL, C)
677 #endif
679 #if defined (CONST_DOUBLE_OK_FOR_LETTER_P) && ! defined (CONST_DOUBLE_OK_FOR_CONSTRAINT_P)
680 #define CONST_DOUBLE_OK_FOR_CONSTRAINT_P(OP,C,STR) \
681 CONST_DOUBLE_OK_FOR_LETTER_P (OP, C)
682 #endif
684 #ifndef REG_CLASS_FROM_CONSTRAINT
685 #define REG_CLASS_FROM_CONSTRAINT(C,STR) REG_CLASS_FROM_LETTER (C)
686 #endif
688 #if defined (EXTRA_CONSTRAINT) && ! defined (EXTRA_CONSTRAINT_STR)
689 #define EXTRA_CONSTRAINT_STR(OP, C,STR) EXTRA_CONSTRAINT (OP, C)
690 #endif
692 #ifndef REGISTER_MOVE_COST
693 #define REGISTER_MOVE_COST(m, x, y) 2
694 #endif
696 /* Determine whether the the entire c99 runtime
697 is present in the runtime library. */
698 #ifndef TARGET_C99_FUNCTIONS
699 #define TARGET_C99_FUNCTIONS 0
700 #endif
702 /* Indicate that CLZ and CTZ are undefined at zero. */
703 #ifndef CLZ_DEFINED_VALUE_AT_ZERO
704 #define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
705 #endif
706 #ifndef CTZ_DEFINED_VALUE_AT_ZERO
707 #define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
708 #endif
710 /* Provide a default value for STORE_FLAG_VALUE. */
711 #ifndef STORE_FLAG_VALUE
712 #define STORE_FLAG_VALUE 1
713 #endif
715 /* This macro is used to determine what the largest unit size that
716 move_by_pieces can use is. */
718 /* MOVE_MAX_PIECES is the number of bytes at a time which we can
719 move efficiently, as opposed to MOVE_MAX which is the maximum
720 number of bytes we can move with a single instruction. */
722 #ifndef MOVE_MAX_PIECES
723 #define MOVE_MAX_PIECES MOVE_MAX
724 #endif
726 #ifndef STACK_POINTER_OFFSET
727 #define STACK_POINTER_OFFSET 0
728 #endif
730 #ifndef LOCAL_REGNO
731 #define LOCAL_REGNO(REGNO) 0
732 #endif
734 /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
735 the stack pointer does not matter. The value is tested only in
736 functions that have frame pointers. */
737 #ifndef EXIT_IGNORE_STACK
738 #define EXIT_IGNORE_STACK 0
739 #endif
741 /* Assume that case vectors are not pc-relative. */
742 #ifndef CASE_VECTOR_PC_RELATIVE
743 #define CASE_VECTOR_PC_RELATIVE 0
744 #endif
746 /* Register mappings for target machines without register windows. */
747 #ifndef INCOMING_REGNO
748 #define INCOMING_REGNO(N) (N)
749 #endif
751 #ifndef OUTGOING_REGNO
752 #define OUTGOING_REGNO(N) (N)
753 #endif
755 #ifndef SHIFT_COUNT_TRUNCATED
756 #define SHIFT_COUNT_TRUNCATED 0
757 #endif
759 #ifndef LEGITIMIZE_ADDRESS
760 #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
761 #endif
763 #ifndef REVERSIBLE_CC_MODE
764 #define REVERSIBLE_CC_MODE(MODE) 0
765 #endif
767 #endif /* ! GCC_DEFAULTS_H */