]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/defaults.h
dwarf2out.c (gen_field_die): Equate decl number to die.
[thirdparty/gcc.git] / gcc / defaults.h
CommitLineData
eff01bb6 1/* Definitions of various defaults for tm.h macros.
d9221e01 2 Copyright (C) 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
d8ea8f28 3 Free Software Foundation, Inc.
b33c316c 4 Contributed by Ron Guilmette (rfg@monkeys.com)
c53a8ab6 5
1322177d 6This file is part of GCC.
c53a8ab6 7
1322177d
LB
8GCC is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
10Software Foundation; either version 2, or (at your option) any later
11version.
c53a8ab6 12
1322177d
LB
13GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
c53a8ab6
RS
17
18You should have received a copy of the GNU General Public License
1322177d
LB
19along with GCC; see the file COPYING. If not, write to the Free
20Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2102111-1307, USA. */
c53a8ab6 22
d8ea8f28
ZW
23#ifndef GCC_DEFAULTS_H
24#define GCC_DEFAULTS_H
25
2f8dd115
NB
26#ifndef GET_ENVIRONMENT
27#define GET_ENVIRONMENT(VALUE, NAME) do { (VALUE) = getenv (NAME); } while (0)
28#endif
29
95ec27aa
SB
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)
4fa31c2a 37
b2b263e1
NB
38/* Define default standard character escape sequences. */
39#ifndef TARGET_BELL
40# define TARGET_BELL 007
41# define TARGET_BS 010
b2b263e1 42# define TARGET_CR 015
61218d19 43# define TARGET_DIGIT0 060
501990bb 44# define TARGET_ESC 033
61218d19
KG
45# define TARGET_FF 014
46# define TARGET_NEWLINE 012
47# define TARGET_TAB 011
48# define TARGET_VT 013
b2b263e1
NB
49#endif
50
4977bab6
ZW
51/* Store in OUTPUT a string (made with alloca) containing an
52 assembler-name for a local static variable or function named NAME.
7b73db04
CH
53 LABELNO is an integer which is different for each call. */
54
4977bab6
ZW
55#ifndef ASM_PN_FORMAT
56# ifndef NO_DOT_IN_LABEL
57# define ASM_PN_FORMAT "%s.%lu"
58# else
59# ifndef NO_DOLLAR_IN_LABEL
60# define ASM_PN_FORMAT "%s$%lu"
61# else
62# define ASM_PN_FORMAT "__%s_%lu"
63# endif
64# endif
65#endif /* ! ASM_PN_FORMAT */
66
7b73db04 67#ifndef ASM_FORMAT_PRIVATE_NAME
4977bab6
ZW
68# define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \
69 do { const char *const name_ = (NAME); \
28dab132
BI
70 char *const output_ = (OUTPUT) = \
71 (char *) alloca (strlen (name_) + 32); \
4977bab6 72 sprintf (output_, ASM_PN_FORMAT, name_, (unsigned long)(LABELNO)); \
7b73db04
CH
73 } while (0)
74#endif
75
76#ifndef ASM_STABD_OP
0a3e1f45 77#define ASM_STABD_OP "\t.stabd\t"
7b73db04
CH
78#endif
79
80/* This is how to output an element of a case-vector that is absolute.
81 Some targets don't use this, but we have to define it anyway. */
82
83#ifndef ASM_OUTPUT_ADDR_VEC_ELT
84#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
07b50aad 85do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
4977bab6 86 (*targetm.asm_out.internal_label) (FILE, "L", (VALUE)); \
7b73db04
CH
87 fputc ('\n', FILE); \
88 } while (0)
89#endif
90
e0a21ab9 91/* Choose a reasonable default for ASM_OUTPUT_ASCII. */
c53a8ab6
RS
92
93#ifndef ASM_OUTPUT_ASCII
94#define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
95 do { \
96 FILE *_hide_asm_out_file = (MYFILE); \
47ee9bcb 97 const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \
c53a8ab6
RS
98 int _hide_thissize = (MYLENGTH); \
99 { \
100 FILE *asm_out_file = _hide_asm_out_file; \
47ee9bcb 101 const unsigned char *p = _hide_p; \
c53a8ab6
RS
102 int thissize = _hide_thissize; \
103 int i; \
104 fprintf (asm_out_file, "\t.ascii \""); \
105 \
106 for (i = 0; i < thissize; i++) \
107 { \
b3694847 108 int c = p[i]; \
c53a8ab6
RS
109 if (c == '\"' || c == '\\') \
110 putc ('\\', asm_out_file); \
5f6d3823 111 if (ISPRINT(c)) \
c53a8ab6
RS
112 putc (c, asm_out_file); \
113 else \
114 { \
115 fprintf (asm_out_file, "\\%o", c); \
116 /* After an octal-escape, if a digit follows, \
117 terminate one string constant and start another. \
8aeea6e6 118 The VAX assembler fails to stop reading the escape \
c53a8ab6
RS
119 after three digits, so this is the only way we \
120 can get it to parse the data properly. */ \
d07ecc3b 121 if (i < thissize - 1 && ISDIGIT(p[i + 1])) \
c53a8ab6
RS
122 fprintf (asm_out_file, "\"\n\t.ascii \""); \
123 } \
124 } \
125 fprintf (asm_out_file, "\"\n"); \
126 } \
127 } \
128 while (0)
129#endif
d0d4af87 130
650f773a
JW
131/* This is how we tell the assembler to equate two values. */
132#ifdef SET_ASM_OP
133#ifndef ASM_OUTPUT_DEF
134#define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
e8638df0 135 do { fprintf ((FILE), "%s", SET_ASM_OP); \
650f773a
JW
136 assemble_name (FILE, LABEL1); \
137 fprintf (FILE, ","); \
138 assemble_name (FILE, LABEL2); \
139 fprintf (FILE, "\n"); \
140 } while (0)
141#endif
142#endif
daefd78b 143
4ad5e05d
KG
144/* This is how to output the definition of a user-level label named
145 NAME, such as the label on a static function or variable NAME. */
146
147#ifndef ASM_OUTPUT_LABEL
148#define ASM_OUTPUT_LABEL(FILE,NAME) \
149 do { assemble_name ((FILE), (NAME)); fputs (":\n", (FILE)); } while (0)
150#endif
151
81d77cda
RK
152/* This is how to output a reference to a user-level label named NAME. */
153
154#ifndef ASM_OUTPUT_LABELREF
19283265 155#define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME))
81d77cda
RK
156#endif
157
8215347e
JW
158/* Allow target to print debug info labels specially. This is useful for
159 VLIW targets, since debug info labels should go into the middle of
160 instruction bundles instead of breaking them. */
161
162#ifndef ASM_OUTPUT_DEBUG_LABEL
163#define ASM_OUTPUT_DEBUG_LABEL(FILE, PREFIX, NUM) \
4977bab6 164 (*targetm.asm_out.internal_label) (FILE, PREFIX, NUM)
8215347e
JW
165#endif
166
3aa8ab7b 167/* This is how we tell the assembler that a symbol is weak. */
20c93f7c
RO
168#ifndef ASM_OUTPUT_WEAK_ALIAS
169#if defined (ASM_WEAKEN_LABEL) && defined (ASM_OUTPUT_DEF)
3aa8ab7b
L
170#define ASM_OUTPUT_WEAK_ALIAS(STREAM, NAME, VALUE) \
171 do \
172 { \
173 ASM_WEAKEN_LABEL (STREAM, NAME); \
174 if (VALUE) \
175 ASM_OUTPUT_DEF (STREAM, NAME, VALUE); \
176 } \
177 while (0)
178#endif
20c93f7c 179#endif
3aa8ab7b 180
2be2ac70
ZW
181/* How to emit a .type directive. */
182#ifndef ASM_OUTPUT_TYPE_DIRECTIVE
183#if defined TYPE_ASM_OP && defined TYPE_OPERAND_FMT
184#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE) \
185 do \
186 { \
187 fputs (TYPE_ASM_OP, STREAM); \
188 assemble_name (STREAM, NAME); \
189 fputs (", ", STREAM); \
190 fprintf (STREAM, TYPE_OPERAND_FMT, TYPE); \
191 putc ('\n', STREAM); \
192 } \
193 while (0)
194#endif
195#endif
196
197/* How to emit a .size directive. */
198#ifndef ASM_OUTPUT_SIZE_DIRECTIVE
199#ifdef SIZE_ASM_OP
200#define ASM_OUTPUT_SIZE_DIRECTIVE(STREAM, NAME, SIZE) \
201 do \
202 { \
203 HOST_WIDE_INT size_ = (SIZE); \
204 fputs (SIZE_ASM_OP, STREAM); \
205 assemble_name (STREAM, NAME); \
90ff44cf 206 fprintf (STREAM, ", " HOST_WIDE_INT_PRINT_DEC "\n", size_); \
2be2ac70
ZW
207 } \
208 while (0)
209
99086d59 210#define ASM_OUTPUT_MEASURED_SIZE(STREAM, NAME) \
2be2ac70
ZW
211 do \
212 { \
213 fputs (SIZE_ASM_OP, STREAM); \
99086d59
ZW
214 assemble_name (STREAM, NAME); \
215 fputs (", .-", STREAM); \
216 assemble_name (STREAM, NAME); \
2be2ac70
ZW
217 putc ('\n', STREAM); \
218 } \
219 while (0)
220
221#endif
222#endif
223
daefd78b
JM
224/* This determines whether or not we support weak symbols. */
225#ifndef SUPPORTS_WEAK
79c4e63f 226#if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
daefd78b
JM
227#define SUPPORTS_WEAK 1
228#else
229#define SUPPORTS_WEAK 0
230#endif
231#endif
a6ab3aad 232
1ca894a0
MM
233/* This determines whether or not we support link-once semantics. */
234#ifndef SUPPORTS_ONE_ONLY
235#ifdef MAKE_DECL_ONE_ONLY
236#define SUPPORTS_ONE_ONLY 1
237#else
238#define SUPPORTS_ONE_ONLY 0
239#endif
240#endif
241
0524c91d
MA
242/* This determines whether weak symbols must be left out of a static
243 archive's table of contents. Defining this macro to be nonzero has
244 the consequence that certain symbols will not be made weak that
245 otherwise would be. The C++ ABI requires this macro to be zero;
f676971a 246 see the documentation. */
0524c91d
MA
247#ifndef TARGET_WEAK_NOT_IN_ARCHIVE_TOC
248#define TARGET_WEAK_NOT_IN_ARCHIVE_TOC 0
4746cf84
MA
249#endif
250
251/* This determines whether or not we need linkonce unwind information */
252#ifndef TARGET_USES_WEAK_UNWIND_INFO
253#define TARGET_USES_WEAK_UNWIND_INFO 0
254#endif
255
d48fd218
ZW
256/* By default, there is no prefix on user-defined symbols. */
257#ifndef USER_LABEL_PREFIX
258#define USER_LABEL_PREFIX ""
259#endif
260
8f08ea1e 261/* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
f676971a 262 provide a weak attribute. Else define it to nothing.
8f08ea1e 263
d02af173 264 This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
8f08ea1e
L
265 not available at that time.
266
267 Note, this is only for use by target files which we know are to be
268 compiled by GCC. */
269#ifndef TARGET_ATTRIBUTE_WEAK
270# if SUPPORTS_WEAK
271# define TARGET_ATTRIBUTE_WEAK __attribute__ ((weak))
272# else
273# define TARGET_ATTRIBUTE_WEAK
274# endif
275#endif
276
4746cf84
MA
277/* This determines whether this target supports hidden visibility.
278 This is a weaker condition than HAVE_GAS_HIDDEN, which probes for
9cf737f8 279 specific assembler syntax. */
4746cf84
MA
280#ifndef TARGET_SUPPORTS_HIDDEN
281# ifdef HAVE_GAS_HIDDEN
282# define TARGET_SUPPORTS_HIDDEN 1
283# else
284# define TARGET_SUPPORTS_HIDDEN 0
285# endif
286#endif
287
288/* Determines whether we may use common symbols to represent one-only
9cf737f8 289 semantics (a.k.a. "vague linkage"). */
4746cf84
MA
290#ifndef USE_COMMON_FOR_ONE_ONLY
291# define USE_COMMON_FOR_ONE_ONLY 1
292#endif
293
294
ea4f1fce
JO
295/* If the target supports init_priority C++ attribute, give
296 SUPPORTS_INIT_PRIORITY a nonzero value. */
297#ifndef SUPPORTS_INIT_PRIORITY
298#define SUPPORTS_INIT_PRIORITY 1
299#endif /* SUPPORTS_INIT_PRIORITY */
300
5897739e
JO
301/* If duplicate library search directories can be removed from a
302 linker command without changing the linker's semantics, give this
303 symbol a nonzero. */
304#ifndef LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
305#define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 0
306#endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */
307
a6ab3aad
JM
308/* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
309 the rest of the DWARF 2 frame unwind support is also provided. */
0021b564
JM
310#if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX)
311#define DWARF2_UNWIND_INFO 1
a6ab3aad 312#endif
b366352b 313
2cc07db4
RH
314/* If we have named sections, and we're using crtstuff to run ctors,
315 use them for registering eh frame information. */
bc2a8f08
RH
316#if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
317 && !defined(EH_FRAME_IN_DATA_SECTION)
7c262518
RH
318#ifndef EH_FRAME_SECTION_NAME
319#define EH_FRAME_SECTION_NAME ".eh_frame"
320#endif
31cf0144
JM
321#endif
322
6351543d
AG
323/* If we have named section and we support weak symbols, then use the
324 .jcr section for recording java classes which need to be registered
325 at program start-up time. */
326#if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK
327#ifndef JCR_SECTION_NAME
328#define JCR_SECTION_NAME ".jcr"
329#endif
330#endif
331
b366352b
MM
332/* By default, we generate a label at the beginning and end of the
333 text section, and compute the size of the text section by
f676971a 334 subtracting the two. However, on some platforms that doesn't
b366352b
MM
335 work, and we use the section itself, rather than a label at the
336 beginning of it, to indicate the start of the section. On such
337 platforms, define this to zero. */
338#ifndef DWARF2_GENERATE_TEXT_SECTION_LABEL
339#define DWARF2_GENERATE_TEXT_SECTION_LABEL 1
340#endif
246833ac 341
c478efd1
GDR
342/* Number of hardware registers that go into the DWARF-2 unwind info.
343 If not defined, equals FIRST_PSEUDO_REGISTER */
344
345#ifndef DWARF_FRAME_REGISTERS
346#define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
347#endif
d8ea8f28 348
4617e3b5
KG
349/* How to renumber registers for dbx and gdb. If not defined, assume
350 no renumbering is necessary. */
351
352#ifndef DBX_REGISTER_NUMBER
353#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
354#endif
355
d8ea8f28
ZW
356/* Default sizes for base C types. If the sizes are different for
357 your target, you should override these values by defining the
358 appropriate symbols in your tm.h file. */
359
5c60f03d
KG
360#ifndef BITS_PER_UNIT
361#define BITS_PER_UNIT 8
362#endif
363
e81dd381
KG
364#ifndef BITS_PER_WORD
365#define BITS_PER_WORD (BITS_PER_UNIT * UNITS_PER_WORD)
366#endif
367
d8ea8f28
ZW
368#ifndef CHAR_TYPE_SIZE
369#define CHAR_TYPE_SIZE BITS_PER_UNIT
370#endif
371
609688f3
JM
372#ifndef BOOL_TYPE_SIZE
373/* `bool' has size and alignment `1', on almost all platforms. */
374#define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
375#endif
376
d8ea8f28
ZW
377#ifndef SHORT_TYPE_SIZE
378#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
379#endif
380
381#ifndef INT_TYPE_SIZE
382#define INT_TYPE_SIZE BITS_PER_WORD
383#endif
384
385#ifndef LONG_TYPE_SIZE
386#define LONG_TYPE_SIZE BITS_PER_WORD
387#endif
388
389#ifndef LONG_LONG_TYPE_SIZE
390#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
391#endif
392
393#ifndef WCHAR_TYPE_SIZE
394#define WCHAR_TYPE_SIZE INT_TYPE_SIZE
395#endif
396
d8ea8f28
ZW
397#ifndef FLOAT_TYPE_SIZE
398#define FLOAT_TYPE_SIZE BITS_PER_WORD
399#endif
400
401#ifndef DOUBLE_TYPE_SIZE
402#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
403#endif
404
405#ifndef LONG_DOUBLE_TYPE_SIZE
406#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
407#endif
408
2465bf76
KG
409/* Width in bits of a pointer. Mind the value of the macro `Pmode'. */
410#ifndef POINTER_SIZE
411#define POINTER_SIZE BITS_PER_WORD
412#endif
413
848e0190
JH
414#ifndef PIC_OFFSET_TABLE_REGNUM
415#define PIC_OFFSET_TABLE_REGNUM INVALID_REGNUM
416#endif
417
b2ca3702
MM
418#ifndef TARGET_DLLIMPORT_DECL_ATTRIBUTES
419#define TARGET_DLLIMPORT_DECL_ATTRIBUTES 0
420#endif
421
63c5b495 422#ifndef TARGET_DECLSPEC
b2ca3702 423#if TARGET_DLLIMPORT_DECL_ATTRIBUTES
63c5b495
MM
424/* If the target supports the "dllimport" attribute, users are
425 probably used to the "__declspec" syntax. */
426#define TARGET_DECLSPEC 1
427#else
428#define TARGET_DECLSPEC 0
429#endif
430#endif
431
a9374841
MM
432/* By default, the preprocessor should be invoked the same way in C++
433 as in C. */
434#ifndef CPLUSPLUS_CPP_SPEC
435#ifdef CPP_SPEC
436#define CPLUSPLUS_CPP_SPEC CPP_SPEC
437#endif
438#endif
439
bf501a65
RH
440#ifndef ACCUMULATE_OUTGOING_ARGS
441#define ACCUMULATE_OUTGOING_ARGS 0
442#endif
443
444/* Supply a default definition for PUSH_ARGS. */
445#ifndef PUSH_ARGS
446#ifdef PUSH_ROUNDING
447#define PUSH_ARGS !ACCUMULATE_OUTGOING_ARGS
448#else
449#define PUSH_ARGS 0
450#endif
451#endif
452
9d6bef95
JM
453/* Decide whether a function's arguments should be processed
454 from first to last or from last to first.
455
456 They should if the stack and args grow in opposite directions, but
457 only if we have push insns. */
458
459#ifdef PUSH_ROUNDING
460
461#ifndef PUSH_ARGS_REVERSED
462#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
463#define PUSH_ARGS_REVERSED PUSH_ARGS
464#endif
465#endif
466
467#endif
468
469#ifndef PUSH_ARGS_REVERSED
470#define PUSH_ARGS_REVERSED 0
471#endif
472
31cdd499
ZW
473/* If PREFERRED_STACK_BOUNDARY is not defined, set it to STACK_BOUNDARY.
474 STACK_BOUNDARY is required. */
475#ifndef PREFERRED_STACK_BOUNDARY
476#define PREFERRED_STACK_BOUNDARY STACK_BOUNDARY
477#endif
478
67231816 479/* By default, the C++ compiler will use function addresses in the
cc2902df 480 vtable entries. Setting this nonzero tells the compiler to use
67231816 481 function descriptors instead. The value of this macro says how
f676971a 482 many words wide the descriptor is (normally 2). It is assumed
67231816
RH
483 that the address of a function descriptor may be treated as a
484 pointer to a function. */
485#ifndef TARGET_VTABLE_USES_DESCRIPTORS
486#define TARGET_VTABLE_USES_DESCRIPTORS 0
487#endif
488
a6f5e048
RH
489/* By default, the vtable entries are void pointers, the so the alignment
490 is the same as pointer alignment. The value of this macro specifies
491 the alignment of the vtable entry in bits. It should be defined only
4b7e68e7 492 when special alignment is necessary. */
a6f5e048
RH
493#ifndef TARGET_VTABLE_ENTRY_ALIGN
494#define TARGET_VTABLE_ENTRY_ALIGN POINTER_SIZE
495#endif
496
497/* There are a few non-descriptor entries in the vtable at offsets below
498 zero. If these entries must be padded (say, to preserve the alignment
499 specified by TARGET_VTABLE_ENTRY_ALIGN), set this to the number of
500 words in each data entry. */
501#ifndef TARGET_VTABLE_DATA_ENTRY_DISTANCE
502#define TARGET_VTABLE_DATA_ENTRY_DISTANCE 1
503#endif
504
4a77e08c
DS
505/* Decide whether it is safe to use a local alias for a virtual function
506 when constructing thunks. */
507#ifndef TARGET_USE_LOCAL_THUNK_ALIAS_P
508#ifdef ASM_OUTPUT_DEF
509#define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 1
510#else
511#define TARGET_USE_LOCAL_THUNK_ALIAS_P(DECL) 0
512#endif
513#endif
514
2a1ee410
RH
515/* Select a format to encode pointers in exception handling data. We
516 prefer those that result in fewer dynamic relocations. Assume no
517 special support here and encode direct references. */
518#ifndef ASM_PREFERRED_EH_DATA_FORMAT
519#define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) DW_EH_PE_absptr
520#endif
521
f3c55c97
AO
522/* By default, the C++ compiler will use the lowest bit of the pointer
523 to function to indicate a pointer-to-member-function points to a
524 virtual member function. However, if FUNCTION_BOUNDARY indicates
525 function addresses aren't always even, the lowest bit of the delta
526 field will be used. */
527#ifndef TARGET_PTRMEMFUNC_VBIT_LOCATION
528#define TARGET_PTRMEMFUNC_VBIT_LOCATION \
529 (FUNCTION_BOUNDARY >= 2 * BITS_PER_UNIT \
530 ? ptrmemfunc_vbit_in_pfn : ptrmemfunc_vbit_in_delta)
531#endif
532
5f0e9ea2
GK
533#ifndef DEFAULT_GDB_EXTENSIONS
534#define DEFAULT_GDB_EXTENSIONS 1
535#endif
536
537/* If more than one debugging type is supported, you must define
f8ca7e49 538 PREFERRED_DEBUGGING_TYPE to choose the default. */
5f0e9ea2 539
f8ca7e49
ZW
540#if 1 < (defined (DBX_DEBUGGING_INFO) + defined (SDB_DEBUGGING_INFO) \
541 + defined (DWARF2_DEBUGGING_INFO) + defined (XCOFF_DEBUGGING_INFO) \
542 + defined (VMS_DEBUGGING_INFO))
5f0e9ea2 543#ifndef PREFERRED_DEBUGGING_TYPE
f8ca7e49 544#error You must define PREFERRED_DEBUGGING_TYPE
5f0e9ea2 545#endif /* no PREFERRED_DEBUGGING_TYPE */
f8ca7e49
ZW
546
547/* If only one debugging format is supported, define PREFERRED_DEBUGGING_TYPE
548 here so other code needn't care. */
549#elif defined DBX_DEBUGGING_INFO
5f0e9ea2 550#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
f8ca7e49
ZW
551
552#elif defined SDB_DEBUGGING_INFO
5f0e9ea2 553#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
f8ca7e49
ZW
554
555#elif defined DWARF2_DEBUGGING_INFO
5f0e9ea2 556#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
f8ca7e49
ZW
557
558#elif defined VMS_DEBUGGING_INFO
7a0c8d71 559#define PREFERRED_DEBUGGING_TYPE VMS_AND_DWARF2_DEBUG
f8ca7e49
ZW
560
561#elif defined XCOFF_DEBUGGING_INFO
5f0e9ea2 562#define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
5f0e9ea2 563
f8ca7e49
ZW
564#else
565/* No debugging format is supported by this target. */
5f0e9ea2
GK
566#define PREFERRED_DEBUGGING_TYPE NO_DEBUG
567#endif
568
66d93b5a
RH
569/* Define codes for all the float formats that we know of. */
570#define UNKNOWN_FLOAT_FORMAT 0
571#define IEEE_FLOAT_FORMAT 1
572#define VAX_FLOAT_FORMAT 2
573#define IBM_FLOAT_FORMAT 3
574#define C4X_FLOAT_FORMAT 4
575
576/* Default to IEEE float if not specified. Nearly all machines use it. */
577#ifndef TARGET_FLOAT_FORMAT
578#define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
579#endif
580
3dcc68a4
NC
581/* Determine the register class for registers suitable to be the base
582 address register in a MEM. Allow the choice to be dependent upon
583 the mode of the memory access. */
584#ifndef MODE_BASE_REG_CLASS
585#define MODE_BASE_REG_CLASS(MODE) BASE_REG_CLASS
586#endif
587
3fcaac1d
RS
588#ifndef LARGEST_EXPONENT_IS_NORMAL
589#define LARGEST_EXPONENT_IS_NORMAL(SIZE) 0
590#endif
591
592#ifndef ROUND_TOWARDS_ZERO
593#define ROUND_TOWARDS_ZERO 0
594#endif
595
71925bc0 596#ifndef MODE_HAS_NANS
3fcaac1d
RS
597#define MODE_HAS_NANS(MODE) \
598 (FLOAT_MODE_P (MODE) \
599 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
600 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
71925bc0
RS
601#endif
602
603#ifndef MODE_HAS_INFINITIES
3fcaac1d
RS
604#define MODE_HAS_INFINITIES(MODE) \
605 (FLOAT_MODE_P (MODE) \
606 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
607 && !LARGEST_EXPONENT_IS_NORMAL (GET_MODE_BITSIZE (MODE)))
71925bc0
RS
608#endif
609
610#ifndef MODE_HAS_SIGNED_ZEROS
611#define MODE_HAS_SIGNED_ZEROS(MODE) \
612 (FLOAT_MODE_P (MODE) && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT)
613#endif
614
615#ifndef MODE_HAS_SIGN_DEPENDENT_ROUNDING
3fcaac1d
RS
616#define MODE_HAS_SIGN_DEPENDENT_ROUNDING(MODE) \
617 (FLOAT_MODE_P (MODE) \
618 && TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT \
619 && !ROUND_TOWARDS_ZERO)
71925bc0
RS
620#endif
621
c15c90bb
ZW
622#ifndef FLOAT_LIB_COMPARE_RETURNS_BOOL
623#define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) false
624#endif
625
b3f8d95d
MM
626/* True if the targets integer-comparision fucntions return { 0, 1, 2
627 } to indicate { <, ==, > }. False if { -1, 0, 1 } is used
628 instead. The libgcc routines are biased. */
629#ifndef TARGET_LIB_INT_CMP_BIASED
630#define TARGET_LIB_INT_CMP_BIASED (true)
631#endif
632
2d295af5
ZW
633/* If FLOAT_WORDS_BIG_ENDIAN is not defined in the header files,
634 then the word-endianness is the same as for integers. */
efdc7e19
RH
635#ifndef FLOAT_WORDS_BIG_ENDIAN
636#define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
637#endif
638
d57a4b98
RH
639#ifndef TARGET_FLT_EVAL_METHOD
640#define TARGET_FLT_EVAL_METHOD 0
641#endif
642
194734e9 643#ifndef HOT_TEXT_SECTION_NAME
3a4bdd05 644#define HOT_TEXT_SECTION_NAME ".text.hot"
194734e9
JH
645#endif
646
647#ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
3a4bdd05 648#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME ".text.unlikely"
194734e9
JH
649#endif
650
750054a2
CT
651#ifndef HAS_LONG_COND_BRANCH
652#define HAS_LONG_COND_BRANCH 0
653#endif
654
655#ifndef HAS_LONG_UNCOND_BRANCH
656#define HAS_LONG_UNCOND_BRANCH 0
657#endif
658
79fe1b3b
DN
659#ifndef UNITS_PER_SIMD_WORD
660#define UNITS_PER_SIMD_WORD 0
661#endif
662
4bafaa6f 663/* Determine whether __cxa_atexit, rather than atexit, is used to
4b7e68e7 664 register C++ destructors for local statics and global objects. */
4bafaa6f
L
665#ifndef DEFAULT_USE_CXA_ATEXIT
666#define DEFAULT_USE_CXA_ATEXIT 0
667#endif
668
ccfc6cc8
UW
669/* Determine whether extra constraint letter should be handled
670 via address reload (like 'o'). */
671#ifndef EXTRA_MEMORY_CONSTRAINT
97488870 672#define EXTRA_MEMORY_CONSTRAINT(C,STR) 0
ccfc6cc8
UW
673#endif
674
675/* Determine whether extra constraint letter should be handled
676 as an address (like 'p'). */
677#ifndef EXTRA_ADDRESS_CONSTRAINT
97488870
R
678#define EXTRA_ADDRESS_CONSTRAINT(C,STR) 0
679#endif
680
681/* When a port defines CONSTRAINT_LEN, it should use DEFAULT_CONSTRAINT_LEN
682 for all the characters that it does not want to change, so things like the
683 'length' of a digit in a matching constraint is an implementation detail,
684 and not part of the interface. */
685#define DEFAULT_CONSTRAINT_LEN(C,STR) 1
686
687#ifndef CONSTRAINT_LEN
688#define CONSTRAINT_LEN(C,STR) DEFAULT_CONSTRAINT_LEN (C, STR)
689#endif
690
691#if defined (CONST_OK_FOR_LETTER_P) && ! defined (CONST_OK_FOR_CONSTRAINT_P)
692#define CONST_OK_FOR_CONSTRAINT_P(VAL,C,STR) CONST_OK_FOR_LETTER_P (VAL, C)
693#endif
694
695#if defined (CONST_DOUBLE_OK_FOR_LETTER_P) && ! defined (CONST_DOUBLE_OK_FOR_CONSTRAINT_P)
696#define CONST_DOUBLE_OK_FOR_CONSTRAINT_P(OP,C,STR) \
697 CONST_DOUBLE_OK_FOR_LETTER_P (OP, C)
698#endif
699
3ff5ef1b 700#ifndef REG_CLASS_FROM_CONSTRAINT
97488870 701#define REG_CLASS_FROM_CONSTRAINT(C,STR) REG_CLASS_FROM_LETTER (C)
3ff5ef1b 702#endif
97488870
R
703
704#if defined (EXTRA_CONSTRAINT) && ! defined (EXTRA_CONSTRAINT_STR)
705#define EXTRA_CONSTRAINT_STR(OP, C,STR) EXTRA_CONSTRAINT (OP, C)
ccfc6cc8
UW
706#endif
707
37706dd1
HPN
708#ifndef REGISTER_MOVE_COST
709#define REGISTER_MOVE_COST(m, x, y) 2
710#endif
711
272f51a3
JH
712/* Determine whether the the entire c99 runtime
713 is present in the runtime library. */
714#ifndef TARGET_C99_FUNCTIONS
715#define TARGET_C99_FUNCTIONS 0
716#endif
717
7dba8395 718/* Indicate that CLZ and CTZ are undefined at zero. */
f676971a 719#ifndef CLZ_DEFINED_VALUE_AT_ZERO
7dba8395
RH
720#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
721#endif
f676971a 722#ifndef CTZ_DEFINED_VALUE_AT_ZERO
7dba8395
RH
723#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
724#endif
725
06f31100
RS
726/* Provide a default value for STORE_FLAG_VALUE. */
727#ifndef STORE_FLAG_VALUE
728#define STORE_FLAG_VALUE 1
729#endif
730
436bcda1
GK
731/* This macro is used to determine what the largest unit size that
732 move_by_pieces can use is. */
733
734/* MOVE_MAX_PIECES is the number of bytes at a time which we can
735 move efficiently, as opposed to MOVE_MAX which is the maximum
736 number of bytes we can move with a single instruction. */
737
738#ifndef MOVE_MAX_PIECES
739#define MOVE_MAX_PIECES MOVE_MAX
740#endif
741
a594a19c
GK
742#ifndef STACK_POINTER_OFFSET
743#define STACK_POINTER_OFFSET 0
744#endif
745
cca8fb0e
KH
746#ifndef LOCAL_REGNO
747#define LOCAL_REGNO(REGNO) 0
748#endif
749
9d05bbce
KH
750/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
751 the stack pointer does not matter. The value is tested only in
752 functions that have frame pointers. */
753#ifndef EXIT_IGNORE_STACK
754#define EXIT_IGNORE_STACK 0
755#endif
756
0ede749d
KH
757/* Assume that case vectors are not pc-relative. */
758#ifndef CASE_VECTOR_PC_RELATIVE
759#define CASE_VECTOR_PC_RELATIVE 0
760#endif
761
6de9cd9a
DN
762/* Assume that trampolines need function alignment. */
763#ifndef TRAMPOLINE_ALIGNMENT
764#define TRAMPOLINE_ALIGNMENT FUNCTION_BOUNDARY
765#endif
766
d220de0e
KH
767/* Register mappings for target machines without register windows. */
768#ifndef INCOMING_REGNO
769#define INCOMING_REGNO(N) (N)
770#endif
771
772#ifndef OUTGOING_REGNO
773#define OUTGOING_REGNO(N) (N)
774#endif
775
bee07d3f
KH
776#ifndef SHIFT_COUNT_TRUNCATED
777#define SHIFT_COUNT_TRUNCATED 0
778#endif
779
3e759eda
KH
780#ifndef LEGITIMIZE_ADDRESS
781#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
782#endif
783
2e4e72b1
ZW
784#ifndef LEGITIMATE_PIC_OPERAND_P
785#define LEGITIMATE_PIC_OPERAND_P(X) 1
786#endif
787
1f8551b2
KH
788#ifndef REVERSIBLE_CC_MODE
789#define REVERSIBLE_CC_MODE(MODE) 0
790#endif
791
07e15286
DE
792/* Biggest alignment supported by the object file format of this machine. */
793#ifndef MAX_OFILE_ALIGNMENT
794#define MAX_OFILE_ALIGNMENT BIGGEST_ALIGNMENT
795#endif
796
88657302 797#endif /* ! GCC_DEFAULTS_H */