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