OSDN Git Service

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