Replace "GNU CC" with "GCC"
[official-gcc.git] / gcc / defaults.h
blob05e0c92137199ed00102e2039375b399ccec1438
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)
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_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
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
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. */
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 */
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
86 #ifndef ASM_STABD_OP
87 #define ASM_STABD_OP "\t.stabd\t"
88 #endif
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. */
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
101 /* choose a reasonable default for ASM_OUTPUT_ASCII. */
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); \
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 \""); \
116 for (i = 0; i < thissize; i++) \
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 \
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 \""); \
135 fprintf (asm_out_file, "\"\n"); \
138 while (0)
139 #endif
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
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. */
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
162 /* This is how to output a reference to a user-level label named NAME. */
164 #ifndef ASM_OUTPUT_LABELREF
165 #define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME))
166 #endif
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. */
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
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 \
183 ASM_WEAKEN_LABEL (STREAM, NAME); \
184 if (VALUE) \
185 ASM_OUTPUT_DEF (STREAM, NAME, VALUE); \
187 while (0)
188 #endif
189 #endif
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 \
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); \
203 while (0)
204 #endif
205 #endif
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 \
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); \
220 while (0)
222 #define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME) \
223 do \
225 fputs (SIZE_ASM_OP, STREAM); \
226 assemble_name (STREAM, NAME); \
227 fputs (", .-", STREAM); \
228 assemble_name (STREAM, NAME); \
229 putc ('\n', STREAM); \
231 while (0)
233 #endif
234 #endif
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
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
254 /* By default, there is no prefix on user-defined symbols. */
255 #ifndef USER_LABEL_PREFIX
256 #define USER_LABEL_PREFIX ""
257 #endif
259 /* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
260 provide a weak attribute. Else define it to nothing.
262 This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
263 not available at that time.
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
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 */
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 */
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
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
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
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
322 /* Supply a default definition for PROMOTE_PROTOTYPES. */
323 #ifndef PROMOTE_PROTOTYPES
324 #define PROMOTE_PROTOTYPES 0
325 #endif
327 /* Number of hardware registers that go into the DWARF-2 unwind info.
328 If not defined, equals FIRST_PSEUDO_REGISTER */
330 #ifndef DWARF_FRAME_REGISTERS
331 #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
332 #endif
334 /* How to renumber registers for dbx and gdb. If not defined, assume
335 no renumbering is necessary. */
337 #ifndef DBX_REGISTER_NUMBER
338 #define DBX_REGISTER_NUMBER(REGNO) (REGNO)
339 #endif
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. */
345 #ifndef BITS_PER_UNIT
346 #define BITS_PER_UNIT 8
347 #endif
349 #ifndef BITS_PER_WORD
350 #define BITS_PER_WORD (BITS_PER_UNIT * UNITS_PER_WORD)
351 #endif
353 #ifndef CHAR_TYPE_SIZE
354 #define CHAR_TYPE_SIZE BITS_PER_UNIT
355 #endif
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
362 #ifndef SHORT_TYPE_SIZE
363 #define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
364 #endif
366 #ifndef INT_TYPE_SIZE
367 #define INT_TYPE_SIZE BITS_PER_WORD
368 #endif
370 #ifndef LONG_TYPE_SIZE
371 #define LONG_TYPE_SIZE BITS_PER_WORD
372 #endif
374 #ifndef LONG_LONG_TYPE_SIZE
375 #define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
376 #endif
378 #ifndef WCHAR_TYPE_SIZE
379 #define WCHAR_TYPE_SIZE INT_TYPE_SIZE
380 #endif
382 #ifndef FLOAT_TYPE_SIZE
383 #define FLOAT_TYPE_SIZE BITS_PER_WORD
384 #endif
386 #ifndef DOUBLE_TYPE_SIZE
387 #define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
388 #endif
390 #ifndef LONG_DOUBLE_TYPE_SIZE
391 #define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
392 #endif
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
399 #ifndef BUILD_VA_LIST_TYPE
400 #define BUILD_VA_LIST_TYPE(X) ((X) = ptr_type_node)
401 #endif
403 #ifndef PIC_OFFSET_TABLE_REGNUM
404 #define PIC_OFFSET_TABLE_REGNUM INVALID_REGNUM
405 #endif
407 /* Type used by GCOV counters. Use 64bit data type if target supports
408 it. */
409 #if LONG_TYPE_SIZE >= 64
410 #define GCOV_TYPE_SIZE LONG_TYPE_SIZE
411 #else
412 #define GCOV_TYPE_SIZE LONG_LONG_TYPE_SIZE
413 #endif
416 /* By default, the preprocessor should be invoked the same way in C++
417 as in C. */
418 #ifndef CPLUSPLUS_CPP_SPEC
419 #ifdef CPP_SPEC
420 #define CPLUSPLUS_CPP_SPEC CPP_SPEC
421 #endif
422 #endif
424 #ifndef ACCUMULATE_OUTGOING_ARGS
425 #define ACCUMULATE_OUTGOING_ARGS 0
426 #endif
428 /* Supply a default definition for PUSH_ARGS. */
429 #ifndef PUSH_ARGS
430 #ifdef PUSH_ROUNDING
431 #define PUSH_ARGS !ACCUMULATE_OUTGOING_ARGS
432 #else
433 #define PUSH_ARGS 0
434 #endif
435 #endif
437 /* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
438 STACK_BOUNDARY is required. */
439 #ifndef PREFERRED_STACK_BOUNDARY
440 #define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY
441 #endif
443 /* By default, the C++ compiler will use function addresses in the
444 vtable entries. Setting this nonzero tells the compiler to use
445 function descriptors instead. The value of this macro says how
446 many words wide the descriptor is (normally 2). It is assumed
447 that the address of a function descriptor may be treated as a
448 pointer to a function. */
449 #ifndef TARGET_VTABLE_USES_DESCRIPTORS
450 #define TARGET_VTABLE_USES_DESCRIPTORS 0
451 #endif
453 /* By default, the vtable entries are void pointers, the so the alignment
454 is the same as pointer alignment. The value of this macro specifies
455 the alignment of the vtable entry in bits. It should be defined only
456 when special alignment is necessary. */
457 #ifndef TARGET_VTABLE_ENTRY_ALIGN
458 #define TARGET_VTABLE_ENTRY_ALIGN POINTER_SIZE
459 #endif
461 /* There are a few non-descriptor entries in the vtable at offsets below
462 zero. If these entries must be padded (say, to preserve the alignment
463 specified by TARGET_VTABLE_ENTRY_ALIGN), set this to the number of
464 words in each data entry. */
465 #ifndef TARGET_VTABLE_DATA_ENTRY_DISTANCE
466 #define TARGET_VTABLE_DATA_ENTRY_DISTANCE 1
467 #endif
469 /* Select a format to encode pointers in exception handling data. We
470 prefer those that result in fewer dynamic relocations. Assume no
471 special support here and encode direct references. */
472 #ifndef ASM_PREFERRED_EH_DATA_FORMAT
473 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) DW_EH_PE_absptr
474 #endif
476 /* By default, the C++ compiler will use the lowest bit of the pointer
477 to function to indicate a pointer-to-member-function points to a
478 virtual member function. However, if FUNCTION_BOUNDARY indicates
479 function addresses aren't always even, the lowest bit of the delta
480 field will be used. */
481 #ifndef TARGET_PTRMEMFUNC_VBIT_LOCATION
482 #define TARGET_PTRMEMFUNC_VBIT_LOCATION \
483 (FUNCTION_BOUNDARY >= 2 * BITS_PER_UNIT \
484 ? ptrmemfunc_vbit_in_pfn : ptrmemfunc_vbit_in_delta)
485 #endif
487 #ifndef DEFAULT_GDB_EXTENSIONS
488 #define DEFAULT_GDB_EXTENSIONS 1
489 #endif
491 /* If more than one debugging type is supported, you must define
492 PREFERRED_DEBUGGING_TYPE to choose a format in a system-dependent way.
494 This is one long line cause VAXC can't handle a \-newline. */
495 #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))
496 #ifndef PREFERRED_DEBUGGING_TYPE
497 You Lose! You must define PREFERRED_DEBUGGING_TYPE!
498 #endif /* no PREFERRED_DEBUGGING_TYPE */
499 #else /* Only one debugging format supported. Define PREFERRED_DEBUGGING_TYPE
500 so other code needn't care. */
501 #ifdef DBX_DEBUGGING_INFO
502 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
503 #endif
504 #ifdef SDB_DEBUGGING_INFO
505 #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
506 #endif
507 #ifdef DWARF_DEBUGGING_INFO
508 #define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG
509 #endif
510 #ifdef DWARF2_DEBUGGING_INFO
511 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
512 #endif
513 #ifdef VMS_DEBUGGING_INFO
514 #define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG
515 #endif
516 #ifdef XCOFF_DEBUGGING_INFO
517 #define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
518 #endif
519 #endif /* More than one debugger format enabled. */
521 /* If still not defined, must have been because no debugging formats
522 are supported. */
523 #ifndef PREFERRED_DEBUGGING_TYPE
524 #define PREFERRED_DEBUGGING_TYPE NO_DEBUG
525 #endif
527 /* Define codes for all the float formats that we know of. */
528 #define UNKNOWN_FLOAT_FORMAT 0
529 #define IEEE_FLOAT_FORMAT 1
530 #define VAX_FLOAT_FORMAT 2
531 #define IBM_FLOAT_FORMAT 3
532 #define C4X_FLOAT_FORMAT 4
534 /* Default to IEEE float if not specified. Nearly all machines use it. */
535 #ifndef TARGET_FLOAT_FORMAT
536 #define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
537 #endif
539 /* Determine the register class for registers suitable to be the base
540 address register in a MEM. Allow the choice to be dependent upon
541 the mode of the memory access. */
542 #ifndef MODE_BASE_REG_CLASS
543 #define MODE_BASE_REG_CLASS(MODE) BASE_REG_CLASS
544 #endif
546 #ifndef LARGEST_EXPONENT_IS_NORMAL
547 #define LARGEST_EXPONENT_IS_NORMAL(SIZE) 0
548 #endif
550 #ifndef ROUND_TOWARDS_ZERO
551 #define ROUND_TOWARDS_ZERO 0
552 #endif
554 #ifndef MODE_HAS_NANS
555 #define MODE_HAS_NANS(MODE) \
556 (FLOAT_MODE_P (MODE) \
557 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
558 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
559 #endif
561 #ifndef MODE_HAS_INFINITIES
562 #define MODE_HAS_INFINITIES(MODE) \
563 (FLOAT_MODE_P (MODE) \
564 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
565 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
566 #endif
568 #ifndef MODE_HAS_SIGNED_ZEROS
569 #define MODE_HAS_SIGNED_ZEROS(MODE) \
570 (FLOAT_MODE_P (MODE) && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT)
571 #endif
573 #ifndef MODE_HAS_SIGN_DEPENDENT_ROUNDING
574 #define MODE_HAS_SIGN_DEPENDENT_ROUNDING(MODE) \
575 (FLOAT_MODE_P (MODE) \
576 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
577 && !ROUND_TOWARDS_ZERO)
578 #endif
580 /* If FLOAT_WORDS_BIG_ENDIAN is not defined in the header files,
581 then the word-endianness is the same as for integers. */
582 #ifndef FLOAT_WORDS_BIG_ENDIAN
583 #define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
584 #endif
586 #ifndef TARGET_FLT_EVAL_METHOD
587 #define TARGET_FLT_EVAL_METHOD 0
588 #endif
590 #ifndef HOT_TEXT_SECTION_NAME
591 #define HOT_TEXT_SECTION_NAME "text.hot"
592 #endif
594 #ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
595 #define UNLIKELY_EXECUTED_TEXT_SECTION_NAME "text.unlikely"
596 #endif
598 #ifndef VECTOR_MODE_SUPPORTED_P
599 #define VECTOR_MODE_SUPPORTED_P(MODE) 0
600 #endif
602 /* Determine whether __cxa_atexit, rather than atexit, is used to
603 register C++ destructors for local statics and global objects. */
604 #ifndef DEFAULT_USE_CXA_ATEXIT
605 #define DEFAULT_USE_CXA_ATEXIT 0
606 #endif
608 /* Determine whether extra constraint letter should be handled
609 via address reload (like 'o'). */
610 #ifndef EXTRA_MEMORY_CONSTRAINT
611 #define EXTRA_MEMORY_CONSTRAINT(C,STR) 0
612 #endif
614 /* Determine whether extra constraint letter should be handled
615 as an address (like 'p'). */
616 #ifndef EXTRA_ADDRESS_CONSTRAINT
617 #define EXTRA_ADDRESS_CONSTRAINT(C,STR) 0
618 #endif
620 /* When a port defines CONSTRAINT_LEN, it should use DEFAULT_CONSTRAINT_LEN
621 for all the characters that it does not want to change, so things like the
622 'length' of a digit in a matching constraint is an implementation detail,
623 and not part of the interface. */
624 #define DEFAULT_CONSTRAINT_LEN(C,STR) 1
626 #ifndef CONSTRAINT_LEN
627 #define CONSTRAINT_LEN(C,STR) DEFAULT_CONSTRAINT_LEN (C, STR)
628 #endif
630 #if defined (CONST_OK_FOR_LETTER_P) && ! defined (CONST_OK_FOR_CONSTRAINT_P)
631 #define CONST_OK_FOR_CONSTRAINT_P(VAL,C,STR) CONST_OK_FOR_LETTER_P (VAL, C)
632 #endif
634 #if defined (CONST_DOUBLE_OK_FOR_LETTER_P) && ! defined (CONST_DOUBLE_OK_FOR_CONSTRAINT_P)
635 #define CONST_DOUBLE_OK_FOR_CONSTRAINT_P(OP,C,STR) \
636 CONST_DOUBLE_OK_FOR_LETTER_P (OP, C)
637 #endif
639 #define REG_CLASS_FROM_CONSTRAINT(C,STR) REG_CLASS_FROM_LETTER (C)
641 #if defined (EXTRA_CONSTRAINT) && ! defined (EXTRA_CONSTRAINT_STR)
642 #define EXTRA_CONSTRAINT_STR(OP, C,STR) EXTRA_CONSTRAINT (OP, C)
643 #endif
645 /* Determine whether the the entire c99 runtime
646 is present in the runtime library. */
647 #ifndef TARGET_C99_FUNCTIONS
648 #define TARGET_C99_FUNCTIONS 0
649 #endif
651 /* Indicate that CLZ and CTZ are undefined at zero. */
652 #ifndef CLZ_DEFINED_VALUE_AT_ZERO
653 #define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
654 #endif
655 #ifndef CTZ_DEFINED_VALUE_AT_ZERO
656 #define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
657 #endif
659 #endif /* ! GCC_DEFAULTS_H */