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
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
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
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)
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, \
38 /* Define default standard character escape sequences. */
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
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. */
56 # ifndef NO_DOT_IN_LABEL
57 # define ASM_PN_FORMAT "%s.%lu"
59 # ifndef NO_DOLLAR_IN_LABEL
60 # define ASM_PN_FORMAT "%s$%lu"
62 # define ASM_PN_FORMAT "__%s_%lu"
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) = \
71 (char *) alloca (strlen (name_) + 32); \
72 sprintf (output_, ASM_PN_FORMAT, name_, (unsigned long)(LABELNO)); \
76 /* This is how to output an element of a case-vector that is absolute.
77 Some targets don't use this, but we have to define it anyway. */
79 #ifndef ASM_OUTPUT_ADDR_VEC_ELT
80 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
81 do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
82 (*targetm.asm_out.internal_label) (FILE, "L", (VALUE)); \
87 /* Choose a reasonable default for ASM_OUTPUT_ASCII. */
89 #ifndef ASM_OUTPUT_ASCII
90 #define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
92 FILE *_hide_asm_out_file = (MYFILE); \
93 const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \
94 int _hide_thissize = (MYLENGTH); \
96 FILE *asm_out_file = _hide_asm_out_file; \
97 const unsigned char *p = _hide_p; \
98 int thissize = _hide_thissize; \
100 fprintf (asm_out_file, "\t.ascii \""); \
102 for (i = 0; i < thissize; i++) \
105 if (c == '\"' || c == '\\') \
106 putc ('\\', asm_out_file); \
108 putc (c, asm_out_file); \
111 fprintf (asm_out_file, "\\%o", c); \
112 /* After an octal-escape, if a digit follows, \
113 terminate one string constant and start another. \
114 The VAX assembler fails to stop reading the escape \
115 after three digits, so this is the only way we \
116 can get it to parse the data properly. */ \
117 if (i < thissize - 1 && ISDIGIT(p[i + 1])) \
118 fprintf (asm_out_file, "\"\n\t.ascii \""); \
121 fprintf (asm_out_file, "\"\n"); \
127 /* This is how we tell the assembler to equate two values. */
129 #ifndef ASM_OUTPUT_DEF
130 #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
131 do { fprintf ((FILE), "%s", SET_ASM_OP); \
132 assemble_name (FILE, LABEL1); \
133 fprintf (FILE, ","); \
134 assemble_name (FILE, LABEL2); \
135 fprintf (FILE, "\n"); \
140 /* This is how to output the definition of a user-level label named
141 NAME, such as the label on a static function or variable NAME. */
143 #ifndef ASM_OUTPUT_LABEL
144 #define ASM_OUTPUT_LABEL(FILE,NAME) \
145 do { assemble_name ((FILE), (NAME)); fputs (":\n", (FILE)); } while (0)
148 /* This is how to output a reference to a user-level label named NAME. */
150 #ifndef ASM_OUTPUT_LABELREF
151 #define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME))
154 /* Allow target to print debug info labels specially. This is useful for
155 VLIW targets, since debug info labels should go into the middle of
156 instruction bundles instead of breaking them. */
158 #ifndef ASM_OUTPUT_DEBUG_LABEL
159 #define ASM_OUTPUT_DEBUG_LABEL(FILE, PREFIX, NUM) \
160 (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM)
163 /* This is how we tell the assembler that a symbol is weak. */
164 #ifndef ASM_OUTPUT_WEAK_ALIAS
165 #if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
166 #define ASM_OUTPUT_WEAK_ALIAS(STREAM, NAME, VALUE) \
169 ASM_WEAKEN_LABEL (STREAM, NAME); \
171 ASM_OUTPUT_DEF (STREAM, NAME, VALUE); \
177 /* How to emit a .type directive. */
178 #ifndef ASM_OUTPUT_TYPE_DIRECTIVE
179 #if defined TYPE_ASM_OP && defined TYPE_OPERAND_FMT
180 #define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE) \
183 fputs (TYPE_ASM_OP, STREAM); \
184 assemble_name (STREAM, NAME); \
185 fputs (", ", STREAM); \
186 fprintf (STREAM, TYPE_OPERAND_FMT, TYPE); \
187 putc ('\n', STREAM); \
193 /* How to emit a .size directive. */
194 #ifndef ASM_OUTPUT_SIZE_DIRECTIVE
196 #define ASM_OUTPUT_SIZE_DIRECTIVE(STREAM, NAME, SIZE) \
199 HOST_WIDE_INT size_ = (SIZE); \
200 fputs (SIZE_ASM_OP, STREAM); \
201 assemble_name (STREAM, NAME); \
202 fprintf (STREAM, ", " HOST_WIDE_INT_PRINT_DEC "\n", size_); \
206 #define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME) \
209 fputs (SIZE_ASM_OP, STREAM); \
210 assemble_name (STREAM, NAME); \
211 fputs (", .-", STREAM); \
212 assemble_name (STREAM, NAME); \
213 putc ('\n', STREAM); \
220 /* This determines whether or not we support weak symbols. */
221 #ifndef SUPPORTS_WEAK
222 #if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
223 #define SUPPORTS_WEAK 1
225 #define SUPPORTS_WEAK 0
229 /* This determines whether or not we support link-once semantics. */
230 #ifndef SUPPORTS_ONE_ONLY
231 #ifdef MAKE_DECL_ONE_ONLY
232 #define SUPPORTS_ONE_ONLY 1
234 #define SUPPORTS_ONE_ONLY 0
238 /* This determines whether weak symbols must be left out of a static
239 archive's table of contents. Defining this macro to be nonzero has
240 the consequence that certain symbols will not be made weak that
241 otherwise would be. The C++ ABI requires this macro to be zero;
242 see the documentation. */
243 #ifndef TARGET_WEAK_NOT_IN_ARCHIVE_TOC
244 #define TARGET_WEAK_NOT_IN_ARCHIVE_TOC 0
247 /* This determines whether or not we need linkonce unwind information. */
248 #ifndef TARGET_USES_WEAK_UNWIND_INFO
249 #define TARGET_USES_WEAK_UNWIND_INFO 0
252 /* By default, there is no prefix on user-defined symbols. */
253 #ifndef USER_LABEL_PREFIX
254 #define USER_LABEL_PREFIX ""
257 /* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
258 provide a weak attribute. Else define it to nothing.
260 This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
261 not available at that time.
263 Note, this is only for use by target files which we know are to be
265 #ifndef TARGET_ATTRIBUTE_WEAK
267 # define TARGET_ATTRIBUTE_WEAK __attribute__ ((weak))
269 # define TARGET_ATTRIBUTE_WEAK
273 /* Determines whether we may use common symbols to represent one-only
274 semantics (a.k.a. "vague linkage"). */
275 #ifndef USE_COMMON_FOR_ONE_ONLY
276 # define USE_COMMON_FOR_ONE_ONLY 1
279 /* By default we can assume that all global symbols are in one namespace,
280 across all shared libraries. */
281 #ifndef MULTIPLE_SYMBOL_SPACES
282 # define MULTIPLE_SYMBOL_SPACES 0
285 /* If the target supports init_priority C++ attribute, give
286 SUPPORTS_INIT_PRIORITY a nonzero value. */
287 #ifndef SUPPORTS_INIT_PRIORITY
288 #define SUPPORTS_INIT_PRIORITY 1
289 #endif /* SUPPORTS_INIT_PRIORITY */
291 /* If duplicate library search directories can be removed from a
292 linker command without changing the linker's semantics, give this
294 #ifndef LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
295 #define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 0
296 #endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */
298 /* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
299 the rest of the DWARF 2 frame unwind support is also provided. */
300 #if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX)
301 #define DWARF2_UNWIND_INFO 1
304 /* If we have named sections, and we're using crtstuff to run ctors,
305 use them for registering eh frame information. */
306 #if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
307 && !defined(EH_FRAME_IN_DATA_SECTION)
308 #ifndef EH_FRAME_SECTION_NAME
309 #define EH_FRAME_SECTION_NAME ".eh_frame"
313 /* If we have named section and we support weak symbols, then use the
314 .jcr section for recording java classes which need to be registered
315 at program start-up time. */
316 #if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
317 #ifndef JCR_SECTION_NAME
318 #define JCR_SECTION_NAME ".jcr"
322 /* Number of hardware registers that go into the DWARF-2 unwind info.
323 If not defined, equals FIRST_PSEUDO_REGISTER */
325 #ifndef DWARF_FRAME_REGISTERS
326 #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
329 /* How to renumber registers for dbx and gdb. If not defined, assume
330 no renumbering is necessary. */
332 #ifndef DBX_REGISTER_NUMBER
333 #define DBX_REGISTER_NUMBER(REGNO) (REGNO)
336 /* Default sizes for base C types. If the sizes are different for
337 your target, you should override these values by defining the
338 appropriate symbols in your tm.h file. */
340 #ifndef BITS_PER_UNIT
341 #define BITS_PER_UNIT 8
344 #ifndef BITS_PER_WORD
345 #define BITS_PER_WORD (BITS_PER_UNIT * UNITS_PER_WORD)
348 #ifndef CHAR_TYPE_SIZE
349 #define CHAR_TYPE_SIZE BITS_PER_UNIT
352 #ifndef BOOL_TYPE_SIZE
353 /* `bool' has size and alignment `1', on almost all platforms. */
354 #define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
357 #ifndef SHORT_TYPE_SIZE
358 #define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
361 #ifndef INT_TYPE_SIZE
362 #define INT_TYPE_SIZE BITS_PER_WORD
365 #ifndef LONG_TYPE_SIZE
366 #define LONG_TYPE_SIZE BITS_PER_WORD
369 #ifndef LONG_LONG_TYPE_SIZE
370 #define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
373 #ifndef WCHAR_TYPE_SIZE
374 #define WCHAR_TYPE_SIZE INT_TYPE_SIZE
377 #ifndef FLOAT_TYPE_SIZE
378 #define FLOAT_TYPE_SIZE BITS_PER_WORD
381 #ifndef DOUBLE_TYPE_SIZE
382 #define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
385 #ifndef LONG_DOUBLE_TYPE_SIZE
386 #define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
389 /* Width in bits of a pointer. Mind the value of the macro `Pmode'. */
391 #define POINTER_SIZE BITS_PER_WORD
394 #ifndef PIC_OFFSET_TABLE_REGNUM
395 #define PIC_OFFSET_TABLE_REGNUM INVALID_REGNUM
398 #ifndef TARGET_DLLIMPORT_DECL_ATTRIBUTES
399 #define TARGET_DLLIMPORT_DECL_ATTRIBUTES 0
402 #ifndef TARGET_DECLSPEC
403 #if TARGET_DLLIMPORT_DECL_ATTRIBUTES
404 /* If the target supports the "dllimport" attribute, users are
405 probably used to the "__declspec" syntax. */
406 #define TARGET_DECLSPEC 1
408 #define TARGET_DECLSPEC 0
412 /* By default, the preprocessor should be invoked the same way in C++
414 #ifndef CPLUSPLUS_CPP_SPEC
416 #define CPLUSPLUS_CPP_SPEC CPP_SPEC
420 #ifndef ACCUMULATE_OUTGOING_ARGS
421 #define ACCUMULATE_OUTGOING_ARGS 0
424 /* Supply a default definition for PUSH_ARGS. */
427 #define PUSH_ARGS !ACCUMULATE_OUTGOING_ARGS
433 /* Decide whether a function's arguments should be processed
434 from first to last or from last to first.
436 They should if the stack and args grow in opposite directions, but
437 only if we have push insns. */
441 #ifndef PUSH_ARGS_REVERSED
442 #if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
443 #define PUSH_ARGS_REVERSED PUSH_ARGS
449 #ifndef PUSH_ARGS_REVERSED
450 #define PUSH_ARGS_REVERSED 0
453 /* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
454 STACK_BOUNDARY is required. */
455 #ifndef PREFERRED_STACK_BOUNDARY
456 #define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY
459 #ifndef TARGET_DEFAULT_PACK_STRUCT
460 #define TARGET_DEFAULT_PACK_STRUCT 0
463 /* By default, the C++ compiler will use function addresses in the
464 vtable entries. Setting this nonzero tells the compiler to use
465 function descriptors instead. The value of this macro says how
466 many words wide the descriptor is (normally 2). It is assumed
467 that the address of a function descriptor may be treated as a
468 pointer to a function. */
469 #ifndef TARGET_VTABLE_USES_DESCRIPTORS
470 #define TARGET_VTABLE_USES_DESCRIPTORS 0
473 /* By default, the vtable entries are void pointers, the so the alignment
474 is the same as pointer alignment. The value of this macro specifies
475 the alignment of the vtable entry in bits. It should be defined only
476 when special alignment is necessary. */
477 #ifndef TARGET_VTABLE_ENTRY_ALIGN
478 #define TARGET_VTABLE_ENTRY_ALIGN POINTER_SIZE
481 /* There are a few non-descriptor entries in the vtable at offsets below
482 zero. If these entries must be padded (say, to preserve the alignment
483 specified by TARGET_VTABLE_ENTRY_ALIGN), set this to the number of
484 words in each data entry. */
485 #ifndef TARGET_VTABLE_DATA_ENTRY_DISTANCE
486 #define TARGET_VTABLE_DATA_ENTRY_DISTANCE 1
489 /* Decide whether it is safe to use a local alias for a virtual function
490 when constructing thunks. */
491 #ifndef TARGET_USE_LOCAL_THUNK_ALIAS_P
492 #ifdef ASM_OUTPUT_DEF
493 #define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 1
495 #define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 0
499 /* Select a format to encode pointers in exception handling data. We
500 prefer those that result in fewer dynamic relocations. Assume no
501 special support here and encode direct references. */
502 #ifndef ASM_PREFERRED_EH_DATA_FORMAT
503 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) DW_EH_PE_absptr
506 /* By default, the C++ compiler will use the lowest bit of the pointer
507 to function to indicate a pointer-to-member-function points to a
508 virtual member function. However, if FUNCTION_BOUNDARY indicates
509 function addresses aren't always even, the lowest bit of the delta
510 field will be used. */
511 #ifndef TARGET_PTRMEMFUNC_VBIT_LOCATION
512 #define TARGET_PTRMEMFUNC_VBIT_LOCATION \
513 (FUNCTION_BOUNDARY >= 2 * BITS_PER_UNIT \
514 ? ptrmemfunc_vbit_in_pfn : ptrmemfunc_vbit_in_delta)
517 #ifndef DEFAULT_GDB_EXTENSIONS
518 #define DEFAULT_GDB_EXTENSIONS 1
521 /* If more than one debugging type is supported, you must define
522 PREFERRED_DEBUGGING_TYPE to choose the default. */
524 #if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) \
525 + defined (DWARF2_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO) \
526 + defined (VMS_DEBUGGING_INFO))
527 #ifndef PREFERRED_DEBUGGING_TYPE
528 #error You must define PREFERRED_DEBUGGING_TYPE
529 #endif /* no PREFERRED_DEBUGGING_TYPE */
531 /* If only one debugging format is supported, define PREFERRED_DEBUGGING_TYPE
532 here so other code needn't care. */
533 #elif defined DBX_DEBUGGING_INFO
534 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
536 #elif defined SDB_DEBUGGING_INFO
537 #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
539 #elif defined DWARF2_DEBUGGING_INFO
540 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
542 #elif defined VMS_DEBUGGING_INFO
543 #define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG
545 #elif defined XCOFF_DEBUGGING_INFO
546 #define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
549 /* No debugging format is supported by this target. */
550 #define PREFERRED_DEBUGGING_TYPE NO_DEBUG
553 /* Define codes for all the float formats that we know of. */
554 #define UNKNOWN_FLOAT_FORMAT 0
555 #define IEEE_FLOAT_FORMAT 1
556 #define VAX_FLOAT_FORMAT 2
557 #define IBM_FLOAT_FORMAT 3
558 #define C4X_FLOAT_FORMAT 4
560 /* Default to IEEE float if not specified. Nearly all machines use it. */
561 #ifndef TARGET_FLOAT_FORMAT
562 #define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
565 /* Some macros can be defined by the backend in either a mode-dependent
566 or mode-independent form. The compiler proper should only use the
567 mode-dependent form, providing VOIDmode when the mode is unknown.
568 We can't poison the macros because the backend may reference them. */
570 #ifndef REGNO_MODE_OK_FOR_BASE_P
571 #define REGNO_MODE_OK_FOR_BASE_P(REGNO, MODE) REGNO_OK_FOR_BASE_P (REGNO)
574 #ifndef REG_MODE_OK_FOR_BASE_P
575 #define REG_MODE_OK_FOR_BASE_P(REG, MODE) REG_OK_FOR_BASE_P (REG)
578 /* Determine the register class for registers suitable to be the base
579 address register in a MEM. Allow the choice to be dependent upon
580 the mode of the memory access. */
581 #ifndef MODE_BASE_REG_CLASS
582 #define MODE_BASE_REG_CLASS(MODE) BASE_REG_CLASS
585 /* Some machines require a different base register class if the index
586 is a register. By default, assume that a base register is acceptable. */
587 #ifndef MODE_BASE_REG_REG_CLASS
588 #define MODE_BASE_REG_REG_CLASS(MODE) MODE_BASE_REG_CLASS(MODE)
591 #ifndef REGNO_MODE_OK_FOR_REG_BASE_P
592 #define REGNO_MODE_OK_FOR_REG_BASE_P(REGNO, MODE) REGNO_MODE_OK_FOR_BASE_P (REGNO, MODE)
595 #ifndef REG_MODE_OK_FOR_REG_BASE_P
596 #define REG_MODE_OK_FOR_REG_BASE_P(REGNO, MODE) REG_MODE_OK_FOR_BASE_P (REGNO, MODE)
599 #ifndef LARGEST_EXPONENT_IS_NORMAL
600 #define LARGEST_EXPONENT_IS_NORMAL(SIZE) 0
603 #ifndef ROUND_TOWARDS_ZERO
604 #define ROUND_TOWARDS_ZERO 0
607 #ifndef MODE_HAS_NANS
608 #define MODE_HAS_NANS(MODE) \
609 (FLOAT_MODE_P (MODE) \
610 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
611 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
614 #ifndef MODE_HAS_INFINITIES
615 #define MODE_HAS_INFINITIES(MODE) \
616 (FLOAT_MODE_P (MODE) \
617 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
618 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
621 #ifndef MODE_HAS_SIGNED_ZEROS
622 #define MODE_HAS_SIGNED_ZEROS(MODE) \
623 (FLOAT_MODE_P (MODE) && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT)
626 #ifndef MODE_HAS_SIGN_DEPENDENT_ROUNDING
627 #define MODE_HAS_SIGN_DEPENDENT_ROUNDING(MODE) \
628 (FLOAT_MODE_P (MODE) \
629 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
630 && !ROUND_TOWARDS_ZERO)
633 #ifndef FLOAT_LIB_COMPARE_RETURNS_BOOL
634 #define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) false
637 /* True if the targets integer-comparison functions return { 0, 1, 2
638 } to indicate { <, ==, > }. False if { -1, 0, 1 } is used
639 instead. The libgcc routines are biased. */
640 #ifndef TARGET_LIB_INT_CMP_BIASED
641 #define TARGET_LIB_INT_CMP_BIASED (true)
644 /* If FLOAT_WORDS_BIG_ENDIAN is not defined in the header files,
645 then the word-endianness is the same as for integers. */
646 #ifndef FLOAT_WORDS_BIG_ENDIAN
647 #define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
650 #ifndef TARGET_FLT_EVAL_METHOD
651 #define TARGET_FLT_EVAL_METHOD 0
654 #ifndef HOT_TEXT_SECTION_NAME
655 #define HOT_TEXT_SECTION_NAME ".text.hot"
658 #ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
659 #define UNLIKELY_EXECUTED_TEXT_SECTION_NAME ".text.unlikely"
662 #ifndef HAS_LONG_COND_BRANCH
663 #define HAS_LONG_COND_BRANCH 0
666 #ifndef HAS_LONG_UNCOND_BRANCH
667 #define HAS_LONG_UNCOND_BRANCH 0
670 #ifndef UNITS_PER_SIMD_WORD
671 #define UNITS_PER_SIMD_WORD 0
674 /* Determine whether __cxa_atexit, rather than atexit, is used to
675 register C++ destructors for local statics and global objects. */
676 #ifndef DEFAULT_USE_CXA_ATEXIT
677 #define DEFAULT_USE_CXA_ATEXIT 0
680 /* Determine whether extra constraint letter should be handled
681 via address reload (like 'o'). */
682 #ifndef EXTRA_MEMORY_CONSTRAINT
683 #define EXTRA_MEMORY_CONSTRAINT(C,STR) 0
686 /* Determine whether extra constraint letter should be handled
687 as an address (like 'p'). */
688 #ifndef EXTRA_ADDRESS_CONSTRAINT
689 #define EXTRA_ADDRESS_CONSTRAINT(C,STR) 0
692 /* When a port defines CONSTRAINT_LEN, it should use DEFAULT_CONSTRAINT_LEN
693 for all the characters that it does not want to change, so things like the
694 'length' of a digit in a matching constraint is an implementation detail,
695 and not part of the interface. */
696 #define DEFAULT_CONSTRAINT_LEN(C,STR) 1
698 #ifndef CONSTRAINT_LEN
699 #define CONSTRAINT_LEN(C,STR) DEFAULT_CONSTRAINT_LEN (C, STR)
702 #if defined (CONST_OK_FOR_LETTER_P) && ! defined (CONST_OK_FOR_CONSTRAINT_P)
703 #define CONST_OK_FOR_CONSTRAINT_P(VAL,C,STR) CONST_OK_FOR_LETTER_P (VAL, C)
706 #if defined (CONST_DOUBLE_OK_FOR_LETTER_P) && ! defined (CONST_DOUBLE_OK_FOR_CONSTRAINT_P)
707 #define CONST_DOUBLE_OK_FOR_CONSTRAINT_P(OP,C,STR) \
708 CONST_DOUBLE_OK_FOR_LETTER_P (OP, C)
711 #ifndef REG_CLASS_FROM_CONSTRAINT
712 #define REG_CLASS_FROM_CONSTRAINT(C,STR) REG_CLASS_FROM_LETTER (C)
715 #if defined (EXTRA_CONSTRAINT) && ! defined (EXTRA_CONSTRAINT_STR)
716 #define EXTRA_CONSTRAINT_STR(OP, C,STR) EXTRA_CONSTRAINT (OP, C)
719 #ifndef REGISTER_MOVE_COST
720 #define REGISTER_MOVE_COST(m, x, y) 2
723 /* Determine whether the the entire c99 runtime
724 is present in the runtime library. */
725 #ifndef TARGET_C99_FUNCTIONS
726 #define TARGET_C99_FUNCTIONS 0
729 /* Indicate that CLZ and CTZ are undefined at zero. */
730 #ifndef CLZ_DEFINED_VALUE_AT_ZERO
731 #define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
733 #ifndef CTZ_DEFINED_VALUE_AT_ZERO
734 #define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
737 /* Provide a default value for STORE_FLAG_VALUE. */
738 #ifndef STORE_FLAG_VALUE
739 #define STORE_FLAG_VALUE 1
742 /* This macro is used to determine what the largest unit size that
743 move_by_pieces can use is. */
745 /* MOVE_MAX_PIECES is the number of bytes at a time which we can
746 move efficiently, as opposed to MOVE_MAX which is the maximum
747 number of bytes we can move with a single instruction. */
749 #ifndef MOVE_MAX_PIECES
750 #define MOVE_MAX_PIECES MOVE_MAX
753 #ifndef STACK_POINTER_OFFSET
754 #define STACK_POINTER_OFFSET 0
758 #define LOCAL_REGNO(REGNO) 0
761 /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
762 the stack pointer does not matter. The value is tested only in
763 functions that have frame pointers. */
764 #ifndef EXIT_IGNORE_STACK
765 #define EXIT_IGNORE_STACK 0
768 /* Assume that case vectors are not pc-relative. */
769 #ifndef CASE_VECTOR_PC_RELATIVE
770 #define CASE_VECTOR_PC_RELATIVE 0
773 /* Assume that trampolines need function alignment. */
774 #ifndef TRAMPOLINE_ALIGNMENT
775 #define TRAMPOLINE_ALIGNMENT FUNCTION_BOUNDARY
778 /* Register mappings for target machines without register windows. */
779 #ifndef INCOMING_REGNO
780 #define INCOMING_REGNO(N) (N)
783 #ifndef OUTGOING_REGNO
784 #define OUTGOING_REGNO(N) (N)
787 #ifndef SHIFT_COUNT_TRUNCATED
788 #define SHIFT_COUNT_TRUNCATED 0
791 #ifndef LEGITIMIZE_ADDRESS
792 #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
795 #ifndef LEGITIMATE_PIC_OPERAND_P
796 #define LEGITIMATE_PIC_OPERAND_P(X) 1
799 #ifndef REVERSIBLE_CC_MODE
800 #define REVERSIBLE_CC_MODE(MODE) 0
803 /* Biggest alignment supported by the object file format of this machine. */
804 #ifndef MAX_OFILE_ALIGNMENT
805 #define MAX_OFILE_ALIGNMENT BIGGEST_ALIGNMENT
808 #endif /* ! GCC_DEFAULTS_H */