OSDN Git Service

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