OSDN Git Service

* reload.c (find_reloads): Handle constraint letters marked by
[pf3gnuchains/gcc-fork.git] / gcc / defaults.h
1 /* Definitions of various defaults for tm.h macros.
2    Copyright (C) 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002
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 xmalloc
31 #define obstack_chunk_free free
32
33 /* Define default standard character escape sequences.  */
34 #ifndef TARGET_BELL
35 #  define TARGET_BELL 007
36 #  define TARGET_BS 010
37 #  define TARGET_TAB 011
38 #  define TARGET_NEWLINE 012
39 #  define TARGET_VT 013
40 #  define TARGET_FF 014
41 #  define TARGET_CR 015
42 #  define TARGET_ESC 033
43 #endif
44
45 /* When removal of CPP_PREDEFINES is complete, TARGET_CPU_CPP_BULITINS
46    can also be removed from here.  */
47 #ifndef TARGET_OS_CPP_BUILTINS
48 # define TARGET_OS_CPP_BUILTINS()
49 #endif
50 #ifndef TARGET_CPU_CPP_BUILTINS
51 # define TARGET_CPU_CPP_BUILTINS()
52 #endif
53 #ifndef CPP_PREDEFINES
54 # define CPP_PREDEFINES ""
55 #endif
56
57 /* Store in OUTPUT a string (made with alloca) containing
58    an assembler-name for a local static variable or function named NAME.
59    LABELNO is an integer which is different for each call.  */
60
61 #ifndef ASM_FORMAT_PRIVATE_NAME
62 #define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO)                  \
63   do {                                                                  \
64     int len = strlen (NAME);                                            \
65     char *temp = (char *) alloca (len + 3);                             \
66     temp[0] = 'L';                                                      \
67     strcpy (&temp[1], (NAME));                                          \
68     temp[len + 1] = '.';                                                \
69     temp[len + 2] = 0;                                                  \
70     (OUTPUT) = (char *) alloca (strlen (NAME) + 11);                    \
71     ASM_GENERATE_INTERNAL_LABEL (OUTPUT, temp, LABELNO);                \
72   } while (0)
73 #endif
74
75 #ifndef ASM_STABD_OP
76 #define ASM_STABD_OP "\t.stabd\t"
77 #endif
78
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.  */
81
82 #ifndef ASM_OUTPUT_ADDR_VEC_ELT
83 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE)  \
84 do { fputs (integer_asm_op (POINTER_SIZE / UNITS_PER_WORD, TRUE), FILE); \
85      ASM_OUTPUT_INTERNAL_LABEL (FILE, "L", (VALUE));                    \
86      fputc ('\n', FILE);                                                \
87    } while (0)
88 #endif
89
90 /* choose a reasonable default for ASM_OUTPUT_ASCII.  */
91
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 \"");                                  \
104                                                                               \
105       for (i = 0; i < thissize; i++)                                          \
106         {                                                                     \
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                                                                \
113             {                                                                 \
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 \"");                    \
122           }                                                                   \
123         }                                                                     \
124       fprintf (asm_out_file, "\"\n");                                         \
125     }                                                                         \
126   }                                                                           \
127   while (0)
128 #endif
129
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
142
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.  */
145
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
150
151 /* This is how to output a reference to a user-level label named NAME.  */
152
153 #ifndef ASM_OUTPUT_LABELREF
154 #define ASM_OUTPUT_LABELREF(FILE,NAME)  asm_fprintf ((FILE), "%U%s", (NAME))
155 #endif
156
157 /* A C statement (sans semicolon) to output to the stdio stream FILE
158    some commands that will make the label NAME global; that is,
159    available for reference from other files.  */
160
161 #if !defined(ASM_GLOBALIZE_LABEL) && defined(GLOBAL_ASM_OP)
162 #define ASM_GLOBALIZE_LABEL(FILE,NAME)          \
163   do {                                          \
164       fputs (GLOBAL_ASM_OP, (FILE));            \
165       assemble_name ((FILE), (NAME));           \
166       fputc ('\n', (FILE));                     \
167   } while (0)
168 #endif
169
170 /* Allow target to print debug info labels specially.  This is useful for
171    VLIW targets, since debug info labels should go into the middle of
172    instruction bundles instead of breaking them.  */
173
174 #ifndef ASM_OUTPUT_DEBUG_LABEL
175 #define ASM_OUTPUT_DEBUG_LABEL(FILE, PREFIX, NUM) \
176   ASM_OUTPUT_INTERNAL_LABEL (FILE, PREFIX, NUM)
177 #endif
178
179 /* This is how we tell the assembler that a symbol is weak.  */
180 #ifndef ASM_OUTPUT_WEAK_ALIAS
181 #if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
182 #define ASM_OUTPUT_WEAK_ALIAS(STREAM, NAME, VALUE)      \
183   do                                                    \
184     {                                                   \
185       ASM_WEAKEN_LABEL (STREAM, NAME);                  \
186       if (VALUE)                                        \
187         ASM_OUTPUT_DEF (STREAM, NAME, VALUE);           \
188     }                                                   \
189   while (0)
190 #endif
191 #endif
192
193 /* How to emit a .type directive.  */
194 #ifndef ASM_OUTPUT_TYPE_DIRECTIVE
195 #if defined TYPE_ASM_OP && defined TYPE_OPERAND_FMT
196 #define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE)   \
197   do                                                    \
198     {                                                   \
199       fputs (TYPE_ASM_OP, STREAM);                      \
200       assemble_name (STREAM, NAME);                     \
201       fputs (", ", STREAM);                             \
202       fprintf (STREAM, TYPE_OPERAND_FMT, TYPE);         \
203       putc ('\n', STREAM);                              \
204     }                                                   \
205   while (0)
206 #endif
207 #endif
208
209 /* How to emit a .size directive.  */
210 #ifndef ASM_OUTPUT_SIZE_DIRECTIVE
211 #ifdef SIZE_ASM_OP
212 #define ASM_OUTPUT_SIZE_DIRECTIVE(STREAM, NAME, SIZE)   \
213   do                                                    \
214     {                                                   \
215       HOST_WIDE_INT size_ = (SIZE);                     \
216       fputs (SIZE_ASM_OP, STREAM);                      \
217       assemble_name (STREAM, NAME);                     \
218       fputs (", ", STREAM);                             \
219       fprintf (STREAM, HOST_WIDE_INT_PRINT_DEC, size_); \
220       putc ('\n', STREAM);                              \
221     }                                                   \
222   while (0)
223
224 #define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME)          \
225   do                                                    \
226     {                                                   \
227       fputs (SIZE_ASM_OP, STREAM);                      \
228       assemble_name (STREAM, NAME);                     \
229       fputs (", .-", STREAM);                           \
230       assemble_name (STREAM, NAME);                     \
231       putc ('\n', STREAM);                              \
232     }                                                   \
233   while (0)
234
235 #endif
236 #endif
237
238 /* This determines whether or not we support weak symbols.  */
239 #ifndef SUPPORTS_WEAK
240 #if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
241 #define SUPPORTS_WEAK 1
242 #else
243 #define SUPPORTS_WEAK 0
244 #endif
245 #endif
246
247 /* This determines whether or not we support link-once semantics.  */
248 #ifndef SUPPORTS_ONE_ONLY
249 #ifdef MAKE_DECL_ONE_ONLY
250 #define SUPPORTS_ONE_ONLY 1
251 #else
252 #define SUPPORTS_ONE_ONLY 0
253 #endif
254 #endif
255
256 /* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
257    provide a weak attribute.  Else define it to nothing. 
258
259    This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
260    not available at that time.
261
262    Note, this is only for use by target files which we know are to be
263    compiled by GCC.  */
264 #ifndef TARGET_ATTRIBUTE_WEAK
265 # if SUPPORTS_WEAK
266 #  define TARGET_ATTRIBUTE_WEAK __attribute__ ((weak))
267 # else
268 #  define TARGET_ATTRIBUTE_WEAK
269 # endif
270 #endif
271
272 /* If the target supports init_priority C++ attribute, give
273    SUPPORTS_INIT_PRIORITY a nonzero value.  */
274 #ifndef SUPPORTS_INIT_PRIORITY
275 #define SUPPORTS_INIT_PRIORITY 1
276 #endif /* SUPPORTS_INIT_PRIORITY */
277
278 /* If duplicate library search directories can be removed from a
279    linker command without changing the linker's semantics, give this
280    symbol a nonzero.  */
281 #ifndef LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
282 #define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 0
283 #endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */
284
285 /* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
286    the rest of the DWARF 2 frame unwind support is also provided.  */
287 #if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX)
288 #define DWARF2_UNWIND_INFO 1
289 #endif
290
291 /* If we have named sections, and we're using crtstuff to run ctors,
292    use them for registering eh frame information.  */
293 #if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
294     && !defined(EH_FRAME_IN_DATA_SECTION)
295 #ifndef EH_FRAME_SECTION_NAME
296 #define EH_FRAME_SECTION_NAME ".eh_frame"
297 #endif
298 #endif
299
300 /* If we have named section and we support weak symbols, then use the
301    .jcr section for recording java classes which need to be registered
302    at program start-up time.  */
303 #if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
304 #ifndef JCR_SECTION_NAME
305 #define JCR_SECTION_NAME ".jcr"
306 #endif
307 #endif
308
309 /* By default, we generate a label at the beginning and end of the
310    text section, and compute the size of the text section by
311    subtracting the two.  However, on some platforms that doesn't 
312    work, and we use the section itself, rather than a label at the
313    beginning of it, to indicate the start of the section.  On such
314    platforms, define this to zero.  */
315 #ifndef DWARF2_GENERATE_TEXT_SECTION_LABEL
316 #define DWARF2_GENERATE_TEXT_SECTION_LABEL 1
317 #endif
318
319 /* Supply a default definition for PROMOTE_PROTOTYPES.  */
320 #ifndef PROMOTE_PROTOTYPES
321 #define PROMOTE_PROTOTYPES      0
322 #endif
323
324 /* Number of hardware registers that go into the DWARF-2 unwind info.
325    If not defined, equals FIRST_PSEUDO_REGISTER  */
326
327 #ifndef DWARF_FRAME_REGISTERS
328 #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
329 #endif
330
331 /* How to renumber registers for dbx and gdb.  If not defined, assume
332    no renumbering is necessary.  */
333
334 #ifndef DBX_REGISTER_NUMBER
335 #define DBX_REGISTER_NUMBER(REGNO) (REGNO)
336 #endif
337
338 /* Default sizes for base C types.  If the sizes are different for
339    your target, you should override these values by defining the
340    appropriate symbols in your tm.h file.  */
341
342 #ifndef BITS_PER_UNIT
343 #define BITS_PER_UNIT 8
344 #endif
345
346 #ifndef BITS_PER_WORD
347 #define BITS_PER_WORD (BITS_PER_UNIT * UNITS_PER_WORD)
348 #endif
349
350 #ifndef CHAR_TYPE_SIZE
351 #define CHAR_TYPE_SIZE BITS_PER_UNIT
352 #endif
353
354 #ifndef BOOL_TYPE_SIZE
355 /* `bool' has size and alignment `1', on almost all platforms.  */
356 #define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
357 #endif
358
359 #ifndef SHORT_TYPE_SIZE
360 #define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
361 #endif
362
363 #ifndef INT_TYPE_SIZE
364 #define INT_TYPE_SIZE BITS_PER_WORD
365 #endif
366
367 #ifndef LONG_TYPE_SIZE
368 #define LONG_TYPE_SIZE BITS_PER_WORD
369 #endif
370
371 #ifndef LONG_LONG_TYPE_SIZE
372 #define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
373 #endif
374
375 #ifndef WCHAR_TYPE_SIZE
376 #define WCHAR_TYPE_SIZE INT_TYPE_SIZE
377 #endif
378
379 #ifndef FLOAT_TYPE_SIZE
380 #define FLOAT_TYPE_SIZE BITS_PER_WORD
381 #endif
382
383 #ifndef DOUBLE_TYPE_SIZE
384 #define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
385 #endif
386
387 #ifndef LONG_DOUBLE_TYPE_SIZE
388 #define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
389 #endif
390
391 /* Width in bits of a pointer.  Mind the value of the macro `Pmode'.  */
392 #ifndef POINTER_SIZE
393 #define POINTER_SIZE BITS_PER_WORD
394 #endif
395
396 #ifndef BUILD_VA_LIST_TYPE
397 #define BUILD_VA_LIST_TYPE(X) ((X) = ptr_type_node)
398 #endif
399
400 #ifndef PIC_OFFSET_TABLE_REGNUM
401 #define PIC_OFFSET_TABLE_REGNUM INVALID_REGNUM
402 #endif
403
404 /* Type used by GCOV counters.  Use 64bit data type if target supports
405    it.  */
406 #if LONG_TYPE_SIZE >= 64
407 #define GCOV_TYPE_SIZE LONG_TYPE_SIZE
408 #else
409 #define GCOV_TYPE_SIZE LONG_LONG_TYPE_SIZE
410 #endif
411
412
413 /* By default, the preprocessor should be invoked the same way in C++
414    as in C.  */
415 #ifndef CPLUSPLUS_CPP_SPEC
416 #ifdef CPP_SPEC
417 #define CPLUSPLUS_CPP_SPEC CPP_SPEC
418 #endif
419 #endif
420
421 #ifndef ACCUMULATE_OUTGOING_ARGS
422 #define ACCUMULATE_OUTGOING_ARGS 0
423 #endif
424
425 /* Supply a default definition for PUSH_ARGS.  */
426 #ifndef PUSH_ARGS
427 #ifdef PUSH_ROUNDING
428 #define PUSH_ARGS       !ACCUMULATE_OUTGOING_ARGS
429 #else
430 #define PUSH_ARGS       0
431 #endif
432 #endif
433
434 /* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
435    STACK_BOUNDARY is required.  */
436 #ifndef PREFERRED_STACK_BOUNDARY
437 #define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY
438 #endif
439
440 /* By default, the C++ compiler will use function addresses in the
441    vtable entries.  Setting this non-zero tells the compiler to use
442    function descriptors instead.  The value of this macro says how
443    many words wide the descriptor is (normally 2).  It is assumed 
444    that the address of a function descriptor may be treated as a
445    pointer to a function.  */
446 #ifndef TARGET_VTABLE_USES_DESCRIPTORS
447 #define TARGET_VTABLE_USES_DESCRIPTORS 0
448 #endif
449
450 /* By default, the vtable entries are void pointers, the so the alignment
451    is the same as pointer alignment.  The value of this macro specifies
452    the alignment of the vtable entry in bits.  It should be defined only
453    when special alignment is necessary. */
454 #ifndef TARGET_VTABLE_ENTRY_ALIGN
455 #define TARGET_VTABLE_ENTRY_ALIGN POINTER_SIZE
456 #endif
457
458 /* There are a few non-descriptor entries in the vtable at offsets below
459    zero.  If these entries must be padded (say, to preserve the alignment
460    specified by TARGET_VTABLE_ENTRY_ALIGN), set this to the number of
461    words in each data entry.  */
462 #ifndef TARGET_VTABLE_DATA_ENTRY_DISTANCE
463 #define TARGET_VTABLE_DATA_ENTRY_DISTANCE 1
464 #endif
465
466 /* Select a format to encode pointers in exception handling data.  We
467    prefer those that result in fewer dynamic relocations.  Assume no
468    special support here and encode direct references.  */
469 #ifndef ASM_PREFERRED_EH_DATA_FORMAT
470 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL)  DW_EH_PE_absptr
471 #endif
472
473 /* By default, the C++ compiler will use the lowest bit of the pointer
474    to function to indicate a pointer-to-member-function points to a
475    virtual member function.  However, if FUNCTION_BOUNDARY indicates
476    function addresses aren't always even, the lowest bit of the delta
477    field will be used.  */
478 #ifndef TARGET_PTRMEMFUNC_VBIT_LOCATION
479 #define TARGET_PTRMEMFUNC_VBIT_LOCATION \
480   (FUNCTION_BOUNDARY >= 2 * BITS_PER_UNIT \
481    ? ptrmemfunc_vbit_in_pfn : ptrmemfunc_vbit_in_delta)
482 #endif
483
484 #ifndef DEFAULT_GDB_EXTENSIONS
485 #define DEFAULT_GDB_EXTENSIONS 1
486 #endif
487
488 /* If more than one debugging type is supported, you must define
489    PREFERRED_DEBUGGING_TYPE to choose a format in a system-dependent way.
490
491    This is one long line cause VAXC can't handle a \-newline.  */
492 #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))
493 #ifndef PREFERRED_DEBUGGING_TYPE
494 You Lose!  You must define PREFERRED_DEBUGGING_TYPE!
495 #endif /* no PREFERRED_DEBUGGING_TYPE */
496 #else /* Only one debugging format supported.  Define PREFERRED_DEBUGGING_TYPE
497          so other code needn't care.  */
498 #ifdef DBX_DEBUGGING_INFO
499 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
500 #endif
501 #ifdef SDB_DEBUGGING_INFO
502 #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
503 #endif
504 #ifdef DWARF_DEBUGGING_INFO
505 #define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG
506 #endif
507 #ifdef DWARF2_DEBUGGING_INFO
508 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
509 #endif
510 #ifdef VMS_DEBUGGING_INFO
511 #define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG
512 #endif
513 #ifdef XCOFF_DEBUGGING_INFO
514 #define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
515 #endif
516 #endif /* More than one debugger format enabled.  */
517
518 /* If still not defined, must have been because no debugging formats
519    are supported.  */
520 #ifndef PREFERRED_DEBUGGING_TYPE
521 #define PREFERRED_DEBUGGING_TYPE NO_DEBUG
522 #endif
523
524 /* This is set to 1 if BYTES_BIG_ENDIAN is defined but the target uses a
525    little-endian method of passing and returning structures in registers.
526    On the HP-UX IA64 and PA64 platforms structures are aligned differently
527    then integral values and setting this value to 1 will allow for the
528    special handling of structure arguments and return values in regs.  */
529
530 #ifndef FUNCTION_ARG_REG_LITTLE_ENDIAN
531 #define FUNCTION_ARG_REG_LITTLE_ENDIAN 0
532 #endif
533
534 /* Determine the register class for registers suitable to be the base
535    address register in a MEM.  Allow the choice to be dependent upon
536    the mode of the memory access.  */
537 #ifndef MODE_BASE_REG_CLASS
538 #define MODE_BASE_REG_CLASS(MODE) BASE_REG_CLASS
539 #endif
540
541 #ifndef LARGEST_EXPONENT_IS_NORMAL
542 #define LARGEST_EXPONENT_IS_NORMAL(SIZE) 0
543 #endif
544
545 #ifndef ROUND_TOWARDS_ZERO
546 #define ROUND_TOWARDS_ZERO 0
547 #endif
548
549 #ifndef MODE_HAS_NANS
550 #define MODE_HAS_NANS(MODE)                                     \
551   (FLOAT_MODE_P (MODE)                                          \
552    && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT                  \
553    && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
554 #endif
555
556 #ifndef MODE_HAS_INFINITIES
557 #define MODE_HAS_INFINITIES(MODE)                               \
558   (FLOAT_MODE_P (MODE)                                          \
559    && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT                  \
560    && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
561 #endif
562
563 #ifndef MODE_HAS_SIGNED_ZEROS
564 #define MODE_HAS_SIGNED_ZEROS(MODE) \
565   (FLOAT_MODE_P (MODE) && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT)
566 #endif
567
568 #ifndef MODE_HAS_SIGN_DEPENDENT_ROUNDING
569 #define MODE_HAS_SIGN_DEPENDENT_ROUNDING(MODE)                  \
570   (FLOAT_MODE_P (MODE)                                          \
571    && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT                  \
572    && !ROUND_TOWARDS_ZERO)
573 #endif
574
575 #ifndef HOT_TEXT_SECTION_NAME
576 #define HOT_TEXT_SECTION_NAME "text.hot"
577 #endif
578
579 #ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
580 #define UNLIKELY_EXECUTED_TEXT_SECTION_NAME "text.unlikely"
581 #endif
582
583 #ifndef VECTOR_MODE_SUPPORTED_P
584 #define VECTOR_MODE_SUPPORTED_P(MODE) 0
585 #endif
586
587 /* Determine whether __cxa_atexit, rather than atexit, is used to
588    register C++ destructors for local statics and global objects. */
589 #ifndef DEFAULT_USE_CXA_ATEXIT
590 #define DEFAULT_USE_CXA_ATEXIT 0
591 #endif
592
593 /* Determine whether extra constraint letter should be handled
594    via address reload (like 'o').  */
595 #ifndef EXTRA_MEMORY_CONSTRAINT
596 #define EXTRA_MEMORY_CONSTRAINT(C) 0
597 #endif
598
599 /* Determine whether extra constraint letter should be handled
600    as an address (like 'p').  */
601 #ifndef EXTRA_ADDRESS_CONSTRAINT
602 #define EXTRA_ADDRESS_CONSTRAINT(C) 0
603 #endif
604
605 #endif  /* ! GCC_DEFAULTS_H */