* config/mips/mips.c (function_arg): Where one part of a
[official-gcc.git] / gcc / target-def.h
blobff2ce03969a2b4a013cbc46e7f7f96ce2fe34a2f
1 /* Default initializers for a generic GCC target.
2 Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 2, or (at your option) any
7 later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 In other words, you are welcome to use, share and improve this program.
19 You are forbidden to forbid anyone else to use, share and improve
20 what you give them. Help stamp out software-hoarding! */
22 /* See target.h for a description of what this file contains and how to
23 use it.
25 We want to have non-NULL default definitions of all hook functions,
26 even if they do nothing. */
28 /* Note that if one of these macros must be defined in an OS .h file
29 rather than the .c file, then we need to wrap the default
30 definition in a #ifndef, since files include tm.h before this one. */
32 /* Assembler output. */
33 #define TARGET_ASM_OPEN_PAREN "("
34 #define TARGET_ASM_CLOSE_PAREN ")"
35 #define TARGET_ASM_BYTE_OP "\t.byte\t"
37 #define TARGET_ASM_ALIGNED_HI_OP "\t.short\t"
38 #define TARGET_ASM_ALIGNED_SI_OP "\t.long\t"
39 #define TARGET_ASM_ALIGNED_DI_OP NULL
40 #define TARGET_ASM_ALIGNED_TI_OP NULL
42 /* GAS and SYSV4 assemblers accept these. */
43 #if defined (OBJECT_FORMAT_ELF)
44 #define TARGET_ASM_UNALIGNED_HI_OP "\t.2byte\t"
45 #define TARGET_ASM_UNALIGNED_SI_OP "\t.4byte\t"
46 #define TARGET_ASM_UNALIGNED_DI_OP "\t.8byte\t"
47 #define TARGET_ASM_UNALIGNED_TI_OP NULL
48 #else
49 #define TARGET_ASM_UNALIGNED_HI_OP NULL
50 #define TARGET_ASM_UNALIGNED_SI_OP NULL
51 #define TARGET_ASM_UNALIGNED_DI_OP NULL
52 #define TARGET_ASM_UNALIGNED_TI_OP NULL
53 #endif /* OBJECT_FORMAT_ELF */
55 #define TARGET_ASM_INTEGER default_assemble_integer
57 #ifndef TARGET_ASM_GLOBALIZE_LABEL
58 #define TARGET_ASM_GLOBALIZE_LABEL default_globalize_label
59 #endif
61 #ifndef TARGET_ASM_EMIT_UNWIND_LABEL
62 #define TARGET_ASM_EMIT_UNWIND_LABEL default_emit_unwind_label
63 #endif
65 #ifndef TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL
66 #define TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL default_emit_except_table_label
67 #endif
69 #ifndef TARGET_UNWIND_EMIT
70 #define TARGET_UNWIND_EMIT default_unwind_emit
71 #endif
73 #ifndef TARGET_ASM_INTERNAL_LABEL
74 #define TARGET_ASM_INTERNAL_LABEL default_internal_label
75 #endif
77 #ifndef TARGET_ARM_TTYPE
78 #define TARGET_ASM_TTYPE hook_bool_rtx_false
79 #endif
81 #ifndef TARGET_ASM_ASSEMBLE_VISIBILITY
82 #define TARGET_ASM_ASSEMBLE_VISIBILITY default_assemble_visibility
83 #endif
85 #define TARGET_ASM_FUNCTION_PROLOGUE default_function_pro_epilogue
86 #define TARGET_ASM_FUNCTION_EPILOGUE default_function_pro_epilogue
87 #define TARGET_ASM_FUNCTION_END_PROLOGUE no_asm_to_stream
88 #define TARGET_ASM_FUNCTION_BEGIN_EPILOGUE no_asm_to_stream
90 #ifndef TARGET_ASM_SELECT_SECTION
91 #define TARGET_ASM_SELECT_SECTION default_select_section
92 #endif
94 #ifndef TARGET_ASM_UNIQUE_SECTION
95 #define TARGET_ASM_UNIQUE_SECTION default_unique_section
96 #endif
98 #ifndef TARGET_ASM_FUNCTION_RODATA_SECTION
99 #define TARGET_ASM_FUNCTION_RODATA_SECTION default_function_rodata_section
100 #endif
102 #ifndef TARGET_ASM_SELECT_RTX_SECTION
103 #define TARGET_ASM_SELECT_RTX_SECTION default_select_rtx_section
104 #endif
106 #if !defined(TARGET_ASM_CONSTRUCTOR) && !defined(USE_COLLECT2)
107 # ifdef CTORS_SECTION_ASM_OP
108 # define TARGET_ASM_CONSTRUCTOR default_ctor_section_asm_out_constructor
109 # else
110 # ifdef TARGET_ASM_NAMED_SECTION
111 # define TARGET_ASM_CONSTRUCTOR default_named_section_asm_out_constructor
112 # else
113 # define TARGET_ASM_CONSTRUCTOR default_stabs_asm_out_constructor
114 # endif
115 # endif
116 #endif
118 #if !defined(TARGET_ASM_DESTRUCTOR) && !defined(USE_COLLECT2)
119 # ifdef DTORS_SECTION_ASM_OP
120 # define TARGET_ASM_DESTRUCTOR default_dtor_section_asm_out_destructor
121 # else
122 # ifdef TARGET_ASM_NAMED_SECTION
123 # define TARGET_ASM_DESTRUCTOR default_named_section_asm_out_destructor
124 # else
125 # define TARGET_ASM_DESTRUCTOR default_stabs_asm_out_destructor
126 # endif
127 # endif
128 #endif
130 #define TARGET_ASM_OUTPUT_MI_THUNK NULL
131 #define TARGET_ASM_CAN_OUTPUT_MI_THUNK hook_bool_tree_hwi_hwi_tree_false
133 #if !defined(TARGET_HAVE_CTORS_DTORS)
134 # if defined(TARGET_ASM_CONSTRUCTOR) && defined(TARGET_ASM_DESTRUCTOR)
135 # define TARGET_HAVE_CTORS_DTORS true
136 # else
137 # define TARGET_HAVE_CTORS_DTORS false
138 # define TARGET_ASM_CONSTRUCTOR NULL
139 # define TARGET_ASM_DESTRUCTOR NULL
140 # endif
141 #endif
143 #ifndef TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
144 #define TARGET_HAVE_SWITCHABLE_BSS_SECTIONS false
145 #endif
147 #ifndef TARGET_ASM_INIT_SECTIONS
148 #define TARGET_ASM_INIT_SECTIONS hook_void_void
149 #endif
151 #ifdef TARGET_ASM_NAMED_SECTION
152 #define TARGET_HAVE_NAMED_SECTIONS true
153 #else
154 #define TARGET_ASM_NAMED_SECTION default_no_named_section
155 #define TARGET_HAVE_NAMED_SECTIONS false
156 #endif
158 #ifndef TARGET_INVALID_WITHIN_DOLOOP
159 #define TARGET_INVALID_WITHIN_DOLOOP default_invalid_within_doloop
160 #endif
162 #ifndef TARGET_VALID_DLLIMPORT_ATTRIBUTE_P
163 #define TARGET_VALID_DLLIMPORT_ATTRIBUTE_P hook_bool_tree_true
164 #endif
166 #ifndef TARGET_HAVE_TLS
167 #define TARGET_HAVE_TLS false
168 #endif
170 #ifndef TARGET_HAVE_SRODATA_SECTION
171 #define TARGET_HAVE_SRODATA_SECTION false
172 #endif
174 #ifndef TARGET_TERMINATE_DW2_EH_FRAME_INFO
175 #ifdef EH_FRAME_SECTION_NAME
176 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO false
177 #else
178 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO true
179 #endif
180 #endif
182 #define TARGET_DWARF_REGISTER_SPAN hook_rtx_rtx_null
184 #ifndef TARGET_ASM_FILE_START
185 #define TARGET_ASM_FILE_START default_file_start
186 #endif
188 #ifndef TARGET_ASM_FILE_END
189 #define TARGET_ASM_FILE_END hook_void_void
190 #endif
192 #ifndef TARGET_EXTRA_LIVE_ON_ENTRY
193 #define TARGET_EXTRA_LIVE_ON_ENTRY hook_void_bitmap
194 #endif
196 #ifndef TARGET_ASM_FILE_START_APP_OFF
197 #define TARGET_ASM_FILE_START_APP_OFF false
198 #endif
200 #ifndef TARGET_ASM_FILE_START_FILE_DIRECTIVE
201 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE false
202 #endif
204 #ifndef TARGET_ASM_EXTERNAL_LIBCALL
205 #define TARGET_ASM_EXTERNAL_LIBCALL default_external_libcall
206 #endif
208 #ifndef TARGET_ASM_MARK_DECL_PRESERVED
209 #define TARGET_ASM_MARK_DECL_PRESERVED hook_void_constcharptr
210 #endif
212 #ifndef TARGET_ASM_OUTPUT_ANCHOR
213 #ifdef ASM_OUTPUT_DEF
214 #define TARGET_ASM_OUTPUT_ANCHOR default_asm_output_anchor
215 #else
216 #define TARGET_ASM_OUTPUT_ANCHOR NULL
217 #endif
218 #endif
220 #ifndef TARGET_ASM_OUTPUT_DWARF_DTPREL
221 #define TARGET_ASM_OUTPUT_DWARF_DTPREL NULL
222 #endif
224 #define TARGET_ASM_ALIGNED_INT_OP \
225 {TARGET_ASM_ALIGNED_HI_OP, \
226 TARGET_ASM_ALIGNED_SI_OP, \
227 TARGET_ASM_ALIGNED_DI_OP, \
228 TARGET_ASM_ALIGNED_TI_OP}
230 #define TARGET_ASM_UNALIGNED_INT_OP \
231 {TARGET_ASM_UNALIGNED_HI_OP, \
232 TARGET_ASM_UNALIGNED_SI_OP, \
233 TARGET_ASM_UNALIGNED_DI_OP, \
234 TARGET_ASM_UNALIGNED_TI_OP}
236 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN, \
237 TARGET_ASM_CLOSE_PAREN, \
238 TARGET_ASM_BYTE_OP, \
239 TARGET_ASM_ALIGNED_INT_OP, \
240 TARGET_ASM_UNALIGNED_INT_OP, \
241 TARGET_ASM_INTEGER, \
242 TARGET_ASM_GLOBALIZE_LABEL, \
243 TARGET_ASM_EMIT_UNWIND_LABEL, \
244 TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL, \
245 TARGET_UNWIND_EMIT, \
246 TARGET_ASM_INTERNAL_LABEL, \
247 TARGET_ASM_TTYPE, \
248 TARGET_ASM_ASSEMBLE_VISIBILITY, \
249 TARGET_ASM_FUNCTION_PROLOGUE, \
250 TARGET_ASM_FUNCTION_END_PROLOGUE, \
251 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, \
252 TARGET_ASM_FUNCTION_EPILOGUE, \
253 TARGET_ASM_INIT_SECTIONS, \
254 TARGET_ASM_NAMED_SECTION, \
255 TARGET_ASM_SELECT_SECTION, \
256 TARGET_ASM_SELECT_RTX_SECTION, \
257 TARGET_ASM_UNIQUE_SECTION, \
258 TARGET_ASM_FUNCTION_RODATA_SECTION, \
259 TARGET_ASM_CONSTRUCTOR, \
260 TARGET_ASM_DESTRUCTOR, \
261 TARGET_ASM_OUTPUT_MI_THUNK, \
262 TARGET_ASM_CAN_OUTPUT_MI_THUNK, \
263 TARGET_ASM_FILE_START, \
264 TARGET_ASM_FILE_END, \
265 TARGET_ASM_EXTERNAL_LIBCALL, \
266 TARGET_ASM_MARK_DECL_PRESERVED, \
267 TARGET_ASM_OUTPUT_ANCHOR, \
268 TARGET_ASM_OUTPUT_DWARF_DTPREL}
270 /* Scheduler hooks. All of these default to null pointers, which
271 haifa-sched.c looks for and handles. */
272 #define TARGET_SCHED_ADJUST_COST 0
273 #define TARGET_SCHED_ADJUST_PRIORITY 0
274 #define TARGET_SCHED_ISSUE_RATE 0
275 #define TARGET_SCHED_VARIABLE_ISSUE 0
276 #define TARGET_SCHED_INIT 0
277 #define TARGET_SCHED_FINISH 0
278 #define TARGET_SCHED_INIT_GLOBAL 0
279 #define TARGET_SCHED_FINISH_GLOBAL 0
280 #define TARGET_SCHED_REORDER 0
281 #define TARGET_SCHED_REORDER2 0
282 #define TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK 0
283 #define TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN 0
284 #define TARGET_SCHED_DFA_PRE_CYCLE_INSN 0
285 #define TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN 0
286 #define TARGET_SCHED_DFA_POST_CYCLE_INSN 0
287 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD 0
288 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD 0
289 #define TARGET_SCHED_DFA_NEW_CYCLE 0
290 #define TARGET_SCHED_IS_COSTLY_DEPENDENCE 0
291 #define TARGET_SCHED_ADJUST_COST_2 0
292 #define TARGET_SCHED_H_I_D_EXTENDED 0
293 #define TARGET_SCHED_SPECULATE_INSN 0
294 #define TARGET_SCHED_NEEDS_BLOCK_P 0
295 #define TARGET_SCHED_GEN_CHECK 0
296 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC 0
297 #define TARGET_SCHED_SET_SCHED_FLAGS 0
300 #define TARGET_SCHED \
301 {TARGET_SCHED_ADJUST_COST, \
302 TARGET_SCHED_ADJUST_PRIORITY, \
303 TARGET_SCHED_ISSUE_RATE, \
304 TARGET_SCHED_VARIABLE_ISSUE, \
305 TARGET_SCHED_INIT, \
306 TARGET_SCHED_FINISH, \
307 TARGET_SCHED_INIT_GLOBAL, \
308 TARGET_SCHED_FINISH_GLOBAL, \
309 TARGET_SCHED_REORDER, \
310 TARGET_SCHED_REORDER2, \
311 TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK, \
312 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN, \
313 TARGET_SCHED_DFA_PRE_CYCLE_INSN, \
314 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN, \
315 TARGET_SCHED_DFA_POST_CYCLE_INSN, \
316 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD, \
317 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD, \
318 TARGET_SCHED_DFA_NEW_CYCLE, \
319 TARGET_SCHED_IS_COSTLY_DEPENDENCE, \
320 TARGET_SCHED_ADJUST_COST_2, \
321 TARGET_SCHED_H_I_D_EXTENDED, \
322 TARGET_SCHED_SPECULATE_INSN, \
323 TARGET_SCHED_NEEDS_BLOCK_P, \
324 TARGET_SCHED_GEN_CHECK, \
325 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC, \
326 TARGET_SCHED_SET_SCHED_FLAGS}
328 #define TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD 0
330 #define TARGET_VECTORIZE \
331 {TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD}
333 #define TARGET_DEFAULT_TARGET_FLAGS 0
335 #define TARGET_HANDLE_OPTION hook_bool_size_t_constcharptr_int_true
337 /* In except.c */
338 #define TARGET_EH_RETURN_FILTER_MODE default_eh_return_filter_mode
340 /* In tree.c. */
341 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
342 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
343 #define TARGET_ATTRIBUTE_TABLE NULL
345 /* In cse.c. */
346 #define TARGET_ADDRESS_COST default_address_cost
348 /* In builtins.c. */
349 #define TARGET_INIT_BUILTINS hook_void_void
350 #define TARGET_EXPAND_BUILTIN default_expand_builtin
351 #define TARGET_RESOLVE_OVERLOADED_BUILTIN NULL
352 #define TARGET_FOLD_BUILTIN hook_tree_tree_tree_bool_null
354 /* In varasm.c. */
355 #ifndef TARGET_SECTION_TYPE_FLAGS
356 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
357 #endif
359 #ifndef TARGET_STRIP_NAME_ENCODING
360 #define TARGET_STRIP_NAME_ENCODING default_strip_name_encoding
361 #endif
363 #ifndef TARGET_BINDS_LOCAL_P
364 #define TARGET_BINDS_LOCAL_P default_binds_local_p
365 #endif
367 #ifndef TARGET_SHIFT_TRUNCATION_MASK
368 #define TARGET_SHIFT_TRUNCATION_MASK default_shift_truncation_mask
369 #endif
371 #ifndef TARGET_MIN_DIVISIONS_FOR_RECIP_MUL
372 #define TARGET_MIN_DIVISIONS_FOR_RECIP_MUL default_min_divisions_for_recip_mul
373 #endif
375 #ifndef TARGET_MODE_REP_EXTENDED
376 #define TARGET_MODE_REP_EXTENDED default_mode_rep_extended
377 #endif
379 #ifndef TARGET_VALID_POINTER_MODE
380 #define TARGET_VALID_POINTER_MODE default_valid_pointer_mode
381 #endif
383 #ifndef TARGET_SCALAR_MODE_SUPPORTED_P
384 #define TARGET_SCALAR_MODE_SUPPORTED_P default_scalar_mode_supported_p
385 #endif
387 #ifndef TARGET_DECIMAL_FLOAT_SUPPORTED_P
388 #define TARGET_DECIMAL_FLOAT_SUPPORTED_P default_decimal_float_supported_p
389 #endif
391 #ifndef TARGET_VECTOR_MODE_SUPPORTED_P
392 #define TARGET_VECTOR_MODE_SUPPORTED_P hook_bool_mode_false
393 #endif
395 #ifndef TARGET_VECTOR_OPAQUE_P
396 #define TARGET_VECTOR_OPAQUE_P hook_bool_tree_false
397 #endif
399 /* In hooks.c. */
400 #define TARGET_CANNOT_MODIFY_JUMPS_P hook_bool_void_false
401 #define TARGET_BRANCH_TARGET_REGISTER_CLASS hook_int_void_no_regs
402 #define TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED hook_bool_bool_false
403 #define TARGET_CANNOT_FORCE_CONST_MEM hook_bool_rtx_false
404 #define TARGET_CANNOT_COPY_INSN_P NULL
405 #define TARGET_COMMUTATIVE_P hook_bool_rtx_commutative_p
406 #define TARGET_DELEGITIMIZE_ADDRESS hook_rtx_rtx_identity
407 #define TARGET_USE_BLOCKS_FOR_CONSTANT_P hook_bool_mode_rtx_false
408 #define TARGET_MIN_ANCHOR_OFFSET 0
409 #define TARGET_MAX_ANCHOR_OFFSET 0
410 #define TARGET_USE_ANCHORS_FOR_SYMBOL_P default_use_anchors_for_symbol_p
411 #define TARGET_FUNCTION_OK_FOR_SIBCALL hook_bool_tree_tree_false
412 #define TARGET_COMP_TYPE_ATTRIBUTES hook_int_tree_tree_1
413 #ifndef TARGET_SET_DEFAULT_TYPE_ATTRIBUTES
414 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES hook_void_tree
415 #endif
416 #define TARGET_INSERT_ATTRIBUTES hook_void_tree_treeptr
417 #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_tree_false
418 #define TARGET_MS_BITFIELD_LAYOUT_P hook_bool_tree_false
419 #define TARGET_ALIGN_ANON_BITFIELD hook_bool_void_false
420 #define TARGET_NARROW_VOLATILE_BITFIELD hook_bool_void_false
421 #define TARGET_RTX_COSTS hook_bool_rtx_int_int_intp_false
422 #define TARGET_MANGLE_FUNDAMENTAL_TYPE hook_constcharptr_tree_null
423 #define TARGET_ALLOCATE_INITIAL_VALUE NULL
425 #ifndef TARGET_INIT_LIBFUNCS
426 #define TARGET_INIT_LIBFUNCS hook_void_void
427 #endif
429 #ifndef TARGET_IN_SMALL_DATA_P
430 #define TARGET_IN_SMALL_DATA_P hook_bool_tree_false
431 #endif
433 #ifndef TARGET_ENCODE_SECTION_INFO
434 #define TARGET_ENCODE_SECTION_INFO default_encode_section_info
435 #endif
437 #ifndef TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
438 #define TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN hook_invalid_arg_for_unprototyped_fn
439 #endif
441 #define TARGET_INVALID_CONVERSION hook_constcharptr_tree_tree_null
442 #define TARGET_INVALID_UNARY_OP hook_constcharptr_int_tree_null
443 #define TARGET_INVALID_BINARY_OP hook_constcharptr_int_tree_tree_null
445 #define TARGET_FIXED_CONDITION_CODE_REGS hook_bool_uintp_uintp_false
447 #define TARGET_CC_MODES_COMPATIBLE default_cc_modes_compatible
449 #define TARGET_MACHINE_DEPENDENT_REORG 0
451 #define TARGET_BUILD_BUILTIN_VA_LIST std_build_builtin_va_list
453 #define TARGET_GET_PCH_VALIDITY default_get_pch_validity
454 #define TARGET_PCH_VALID_P default_pch_valid_p
455 #define TARGET_CHECK_PCH_TARGET_FLAGS NULL
457 #define TARGET_DEFAULT_SHORT_ENUMS hook_bool_void_false
459 #define TARGET_BUILTIN_SETJMP_FRAME_VALUE default_builtin_setjmp_frame_value
461 #define TARGET_MD_ASM_CLOBBERS hook_tree_tree_tree_tree_3rd_identity
463 #define TARGET_DWARF_CALLING_CONVENTION hook_int_tree_0
465 #define TARGET_DWARF_HANDLE_FRAME_UNSPEC 0
467 #define TARGET_STDARG_OPTIMIZE_HOOK 0
469 #define TARGET_STACK_PROTECT_GUARD default_stack_protect_guard
470 #define TARGET_STACK_PROTECT_FAIL default_external_stack_protect_fail
472 #define TARGET_ARM_EABI_UNWINDER false
474 #define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false
475 #define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_false
476 #define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_false
478 #define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null
479 #define TARGET_RETURN_IN_MEMORY default_return_in_memory
480 #define TARGET_RETURN_IN_MSB hook_bool_tree_false
482 #define TARGET_EXPAND_BUILTIN_SAVEREGS default_expand_builtin_saveregs
483 #define TARGET_SETUP_INCOMING_VARARGS default_setup_incoming_varargs
484 #define TARGET_STRICT_ARGUMENT_NAMING hook_bool_CUMULATIVE_ARGS_false
485 #define TARGET_PRETEND_OUTGOING_VARARGS_NAMED \
486 default_pretend_outgoing_varargs_named
487 #define TARGET_SPLIT_COMPLEX_ARG NULL
489 #define TARGET_GIMPLIFY_VA_ARG_EXPR std_gimplify_va_arg_expr
490 #define TARGET_PASS_BY_REFERENCE hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
492 #define TARGET_RELAXED_ORDERING false
494 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size_or_pad
495 #define TARGET_CALLEE_COPIES hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
496 #define TARGET_ARG_PARTIAL_BYTES hook_int_CUMULATIVE_ARGS_mode_tree_bool_0
498 #define TARGET_FUNCTION_VALUE default_function_value
499 #define TARGET_INTERNAL_ARG_POINTER default_internal_arg_pointer
501 #define TARGET_CALLS { \
502 TARGET_PROMOTE_FUNCTION_ARGS, \
503 TARGET_PROMOTE_FUNCTION_RETURN, \
504 TARGET_PROMOTE_PROTOTYPES, \
505 TARGET_STRUCT_VALUE_RTX, \
506 TARGET_RETURN_IN_MEMORY, \
507 TARGET_RETURN_IN_MSB, \
508 TARGET_PASS_BY_REFERENCE, \
509 TARGET_EXPAND_BUILTIN_SAVEREGS, \
510 TARGET_SETUP_INCOMING_VARARGS, \
511 TARGET_STRICT_ARGUMENT_NAMING, \
512 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, \
513 TARGET_SPLIT_COMPLEX_ARG, \
514 TARGET_MUST_PASS_IN_STACK, \
515 TARGET_CALLEE_COPIES, \
516 TARGET_ARG_PARTIAL_BYTES, \
517 TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN, \
518 TARGET_FUNCTION_VALUE, \
519 TARGET_INTERNAL_ARG_POINTER \
522 #ifndef TARGET_UNWIND_TABLES_DEFAULT
523 #define TARGET_UNWIND_TABLES_DEFAULT false
524 #endif
526 #ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
527 #define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
528 #endif
530 #ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
531 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
532 #endif
534 #ifndef TARGET_SECONDARY_RELOAD
535 #define TARGET_SECONDARY_RELOAD default_secondary_reload
536 #endif
539 /* C++ specific. */
540 #ifndef TARGET_CXX_GUARD_TYPE
541 #define TARGET_CXX_GUARD_TYPE default_cxx_guard_type
542 #endif
544 #ifndef TARGET_CXX_GUARD_MASK_BIT
545 #define TARGET_CXX_GUARD_MASK_BIT hook_bool_void_false
546 #endif
548 #ifndef TARGET_CXX_GET_COOKIE_SIZE
549 #define TARGET_CXX_GET_COOKIE_SIZE default_cxx_get_cookie_size
550 #endif
552 #ifndef TARGET_CXX_COOKIE_HAS_SIZE
553 #define TARGET_CXX_COOKIE_HAS_SIZE hook_bool_void_false
554 #endif
556 #ifndef TARGET_CXX_IMPORT_EXPORT_CLASS
557 #define TARGET_CXX_IMPORT_EXPORT_CLASS NULL
558 #endif
560 #ifndef TARGET_CXX_CDTOR_RETURNS_THIS
561 #define TARGET_CXX_CDTOR_RETURNS_THIS hook_bool_void_false
562 #endif
564 #ifndef TARGET_CXX_KEY_METHOD_MAY_BE_INLINE
565 #define TARGET_CXX_KEY_METHOD_MAY_BE_INLINE hook_bool_void_true
566 #endif
568 #ifndef TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY
569 #define TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY hook_void_tree
570 #endif
572 #ifndef TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT
573 #define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_true
574 #endif
576 #ifndef TARGET_CXX_USE_AEABI_ATEXIT
577 #define TARGET_CXX_USE_AEABI_ATEXIT hook_bool_void_false
578 #endif
580 #ifndef TARGET_CXX_ADJUST_CLASS_AT_DEFINITION
581 #define TARGET_CXX_ADJUST_CLASS_AT_DEFINITION hook_void_tree
582 #endif
584 #define TARGET_CXX \
586 TARGET_CXX_GUARD_TYPE, \
587 TARGET_CXX_GUARD_MASK_BIT, \
588 TARGET_CXX_GET_COOKIE_SIZE, \
589 TARGET_CXX_COOKIE_HAS_SIZE, \
590 TARGET_CXX_IMPORT_EXPORT_CLASS, \
591 TARGET_CXX_CDTOR_RETURNS_THIS, \
592 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE, \
593 TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY, \
594 TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT, \
595 TARGET_CXX_USE_AEABI_ATEXIT, \
596 TARGET_CXX_ADJUST_CLASS_AT_DEFINITION \
599 /* The whole shebang. */
600 #define TARGET_INITIALIZER \
602 TARGET_ASM_OUT, \
603 TARGET_SCHED, \
604 TARGET_VECTORIZE, \
605 TARGET_DEFAULT_TARGET_FLAGS, \
606 TARGET_HANDLE_OPTION, \
607 TARGET_EH_RETURN_FILTER_MODE, \
608 TARGET_MERGE_DECL_ATTRIBUTES, \
609 TARGET_MERGE_TYPE_ATTRIBUTES, \
610 TARGET_ATTRIBUTE_TABLE, \
611 TARGET_COMP_TYPE_ATTRIBUTES, \
612 TARGET_SET_DEFAULT_TYPE_ATTRIBUTES, \
613 TARGET_INSERT_ATTRIBUTES, \
614 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P, \
615 TARGET_MS_BITFIELD_LAYOUT_P, \
616 TARGET_DECIMAL_FLOAT_SUPPORTED_P, \
617 TARGET_ALIGN_ANON_BITFIELD, \
618 TARGET_NARROW_VOLATILE_BITFIELD, \
619 TARGET_INIT_BUILTINS, \
620 TARGET_EXPAND_BUILTIN, \
621 TARGET_RESOLVE_OVERLOADED_BUILTIN, \
622 TARGET_FOLD_BUILTIN, \
623 TARGET_MANGLE_FUNDAMENTAL_TYPE, \
624 TARGET_INIT_LIBFUNCS, \
625 TARGET_SECTION_TYPE_FLAGS, \
626 TARGET_CANNOT_MODIFY_JUMPS_P, \
627 TARGET_BRANCH_TARGET_REGISTER_CLASS, \
628 TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED, \
629 TARGET_CANNOT_FORCE_CONST_MEM, \
630 TARGET_CANNOT_COPY_INSN_P, \
631 TARGET_COMMUTATIVE_P, \
632 TARGET_DELEGITIMIZE_ADDRESS, \
633 TARGET_USE_BLOCKS_FOR_CONSTANT_P, \
634 TARGET_MIN_ANCHOR_OFFSET, \
635 TARGET_MAX_ANCHOR_OFFSET, \
636 TARGET_USE_ANCHORS_FOR_SYMBOL_P, \
637 TARGET_FUNCTION_OK_FOR_SIBCALL, \
638 TARGET_IN_SMALL_DATA_P, \
639 TARGET_BINDS_LOCAL_P, \
640 TARGET_ENCODE_SECTION_INFO, \
641 TARGET_STRIP_NAME_ENCODING, \
642 TARGET_SHIFT_TRUNCATION_MASK, \
643 TARGET_MIN_DIVISIONS_FOR_RECIP_MUL, \
644 TARGET_MODE_REP_EXTENDED, \
645 TARGET_VALID_POINTER_MODE, \
646 TARGET_SCALAR_MODE_SUPPORTED_P, \
647 TARGET_VECTOR_MODE_SUPPORTED_P, \
648 TARGET_VECTOR_OPAQUE_P, \
649 TARGET_RTX_COSTS, \
650 TARGET_ADDRESS_COST, \
651 TARGET_ALLOCATE_INITIAL_VALUE, \
652 TARGET_DWARF_REGISTER_SPAN, \
653 TARGET_FIXED_CONDITION_CODE_REGS, \
654 TARGET_CC_MODES_COMPATIBLE, \
655 TARGET_MACHINE_DEPENDENT_REORG, \
656 TARGET_BUILD_BUILTIN_VA_LIST, \
657 TARGET_GIMPLIFY_VA_ARG_EXPR, \
658 TARGET_GET_PCH_VALIDITY, \
659 TARGET_PCH_VALID_P, \
660 TARGET_CHECK_PCH_TARGET_FLAGS, \
661 TARGET_DEFAULT_SHORT_ENUMS, \
662 TARGET_BUILTIN_SETJMP_FRAME_VALUE, \
663 TARGET_MD_ASM_CLOBBERS, \
664 TARGET_DWARF_CALLING_CONVENTION, \
665 TARGET_DWARF_HANDLE_FRAME_UNSPEC, \
666 TARGET_STDARG_OPTIMIZE_HOOK, \
667 TARGET_STACK_PROTECT_GUARD, \
668 TARGET_STACK_PROTECT_FAIL, \
669 TARGET_INVALID_WITHIN_DOLOOP, \
670 TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, \
671 TARGET_CALLS, \
672 TARGET_INVALID_CONVERSION, \
673 TARGET_INVALID_UNARY_OP, \
674 TARGET_INVALID_BINARY_OP, \
675 TARGET_SECONDARY_RELOAD, \
676 TARGET_CXX, \
677 TARGET_EXTRA_LIVE_ON_ENTRY, \
678 TARGET_UNWIND_TABLES_DEFAULT, \
679 TARGET_HAVE_NAMED_SECTIONS, \
680 TARGET_HAVE_SWITCHABLE_BSS_SECTIONS, \
681 TARGET_HAVE_CTORS_DTORS, \
682 TARGET_HAVE_TLS, \
683 TARGET_HAVE_SRODATA_SECTION, \
684 TARGET_TERMINATE_DW2_EH_FRAME_INFO, \
685 TARGET_ASM_FILE_START_APP_OFF, \
686 TARGET_ASM_FILE_START_FILE_DIRECTIVE, \
687 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME, \
688 TARGET_HANDLE_PRAGMA_EXTERN_PREFIX, \
689 TARGET_RELAXED_ORDERING, \
690 TARGET_ARM_EABI_UNWINDER \
693 #include "hooks.h"
694 #include "targhooks.h"