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