8aeebeb80f142c6f9339cb1c58e9608f7dd0542b
1 /* Default initializers for a generic GCC target.
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
3 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 3, or (at your option) any
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING3. If not see
17 <http://www.gnu.org/licenses/>.
19 In other words, you are welcome to use, share and improve this program.
20 You are forbidden to forbid anyone else to use, share and improve
21 what you give them. Help stamp out software-hoarding! */
23 /* See target.h for a description of what this file contains and how to
26 We want to have non-NULL default definitions of all hook functions,
27 even if they do nothing. */
29 /* Note that if one of these macros must be defined in an OS .h file
30 rather than the .c file, then we need to wrap the default
31 definition in a #ifndef, since files include tm.h before this one. */
33 /* Assembler output. */
34 #ifndef TARGET_ASM_OPEN_PAREN
35 #define TARGET_ASM_OPEN_PAREN "("
37 #ifndef TARGET_ASM_CLOSE_PAREN
38 #define TARGET_ASM_CLOSE_PAREN ")"
41 #define TARGET_ASM_BYTE_OP "\t.byte\t"
43 #define TARGET_ASM_ALIGNED_HI_OP "\t.short\t"
44 #define TARGET_ASM_ALIGNED_SI_OP "\t.long\t"
45 #define TARGET_ASM_ALIGNED_DI_OP NULL
46 #define TARGET_ASM_ALIGNED_TI_OP NULL
48 /* GAS and SYSV4 assemblers accept these. */
49 #if defined (OBJECT_FORMAT_ELF)
50 #define TARGET_ASM_UNALIGNED_HI_OP "\t.2byte\t"
51 #define TARGET_ASM_UNALIGNED_SI_OP "\t.4byte\t"
52 #define TARGET_ASM_UNALIGNED_DI_OP "\t.8byte\t"
53 #define TARGET_ASM_UNALIGNED_TI_OP NULL
55 #define TARGET_ASM_UNALIGNED_HI_OP NULL
56 #define TARGET_ASM_UNALIGNED_SI_OP NULL
57 #define TARGET_ASM_UNALIGNED_DI_OP NULL
58 #define TARGET_ASM_UNALIGNED_TI_OP NULL
59 #endif /* OBJECT_FORMAT_ELF */
61 #define TARGET_ASM_INTEGER default_assemble_integer
63 #ifndef TARGET_ASM_GLOBALIZE_LABEL
64 #define TARGET_ASM_GLOBALIZE_LABEL default_globalize_label
67 #ifndef TARGET_ASM_GLOBALIZE_DECL_NAME
68 #define TARGET_ASM_GLOBALIZE_DECL_NAME default_globalize_decl_name
71 #ifndef TARGET_ASM_EMIT_UNWIND_LABEL
72 #define TARGET_ASM_EMIT_UNWIND_LABEL default_emit_unwind_label
75 #ifndef TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL
76 #define TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL default_emit_except_table_label
79 #ifndef TARGET_UNWIND_EMIT
80 #define TARGET_UNWIND_EMIT default_unwind_emit
83 #ifndef TARGET_ASM_INTERNAL_LABEL
84 #define TARGET_ASM_INTERNAL_LABEL default_internal_label
87 #ifndef TARGET_ARM_TTYPE
88 #define TARGET_ASM_TTYPE hook_bool_rtx_false
91 #ifndef TARGET_ASM_ASSEMBLE_VISIBILITY
92 #define TARGET_ASM_ASSEMBLE_VISIBILITY default_assemble_visibility
95 #define TARGET_ASM_FUNCTION_PROLOGUE default_function_pro_epilogue
96 #define TARGET_ASM_FUNCTION_EPILOGUE default_function_pro_epilogue
97 #define TARGET_ASM_FUNCTION_END_PROLOGUE no_asm_to_stream
98 #define TARGET_ASM_FUNCTION_BEGIN_EPILOGUE no_asm_to_stream
100 #ifndef TARGET_ASM_RELOC_RW_MASK
101 #define TARGET_ASM_RELOC_RW_MASK default_reloc_rw_mask
104 #ifndef TARGET_ASM_SELECT_SECTION
105 #define TARGET_ASM_SELECT_SECTION default_select_section
108 #ifndef TARGET_ASM_UNIQUE_SECTION
109 #define TARGET_ASM_UNIQUE_SECTION default_unique_section
112 #ifndef TARGET_ASM_FUNCTION_RODATA_SECTION
113 #define TARGET_ASM_FUNCTION_RODATA_SECTION default_function_rodata_section
116 #ifndef TARGET_ASM_SELECT_RTX_SECTION
117 #define TARGET_ASM_SELECT_RTX_SECTION default_select_rtx_section
120 #if !defined(TARGET_ASM_CONSTRUCTOR) && !defined(USE_COLLECT2)
121 # ifdef CTORS_SECTION_ASM_OP
122 # define TARGET_ASM_CONSTRUCTOR default_ctor_section_asm_out_constructor
124 # ifdef TARGET_ASM_NAMED_SECTION
125 # define TARGET_ASM_CONSTRUCTOR default_named_section_asm_out_constructor
127 # define TARGET_ASM_CONSTRUCTOR default_stabs_asm_out_constructor
132 #if !defined(TARGET_ASM_DESTRUCTOR) && !defined(USE_COLLECT2)
133 # ifdef DTORS_SECTION_ASM_OP
134 # define TARGET_ASM_DESTRUCTOR default_dtor_section_asm_out_destructor
136 # ifdef TARGET_ASM_NAMED_SECTION
137 # define TARGET_ASM_DESTRUCTOR default_named_section_asm_out_destructor
139 # define TARGET_ASM_DESTRUCTOR default_stabs_asm_out_destructor
144 #define TARGET_ASM_OUTPUT_MI_THUNK NULL
145 #define TARGET_ASM_CAN_OUTPUT_MI_THUNK hook_bool_const_tree_hwi_hwi_const_tree_false
147 #if !defined(TARGET_HAVE_CTORS_DTORS)
148 # if defined(TARGET_ASM_CONSTRUCTOR) && defined(TARGET_ASM_DESTRUCTOR)
149 # define TARGET_HAVE_CTORS_DTORS true
151 # define TARGET_HAVE_CTORS_DTORS false
152 # define TARGET_ASM_CONSTRUCTOR NULL
153 # define TARGET_ASM_DESTRUCTOR NULL
157 #ifndef TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
158 #define TARGET_HAVE_SWITCHABLE_BSS_SECTIONS false
161 #ifndef TARGET_ASM_INIT_SECTIONS
162 #define TARGET_ASM_INIT_SECTIONS hook_void_void
165 #ifdef TARGET_ASM_NAMED_SECTION
166 #define TARGET_HAVE_NAMED_SECTIONS true
168 #define TARGET_ASM_NAMED_SECTION default_no_named_section
169 #define TARGET_HAVE_NAMED_SECTIONS false
172 #ifndef TARGET_INVALID_WITHIN_DOLOOP
173 #define TARGET_INVALID_WITHIN_DOLOOP default_invalid_within_doloop
176 #ifndef TARGET_VALID_DLLIMPORT_ATTRIBUTE_P
177 #define TARGET_VALID_DLLIMPORT_ATTRIBUTE_P hook_bool_const_tree_true
180 #ifndef TARGET_HAVE_TLS
181 #define TARGET_HAVE_TLS false
184 #ifndef TARGET_HAVE_SRODATA_SECTION
185 #define TARGET_HAVE_SRODATA_SECTION false
188 #ifndef TARGET_TERMINATE_DW2_EH_FRAME_INFO
189 #ifdef EH_FRAME_SECTION_NAME
190 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO false
192 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO true
196 #define TARGET_DWARF_REGISTER_SPAN hook_rtx_rtx_null
197 #define TARGET_INIT_DWARF_REG_SIZES_EXTRA hook_void_tree
199 #ifndef TARGET_ASM_FILE_START
200 #define TARGET_ASM_FILE_START default_file_start
203 #ifndef TARGET_ASM_FILE_END
204 #define TARGET_ASM_FILE_END hook_void_void
207 #ifndef TARGET_EXTRA_LIVE_ON_ENTRY
208 #define TARGET_EXTRA_LIVE_ON_ENTRY hook_void_bitmap
211 #ifndef TARGET_ASM_FILE_START_APP_OFF
212 #define TARGET_ASM_FILE_START_APP_OFF false
215 #ifndef TARGET_ASM_FILE_START_FILE_DIRECTIVE
216 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE false
219 #ifndef TARGET_ASM_EXTERNAL_LIBCALL
220 #define TARGET_ASM_EXTERNAL_LIBCALL default_external_libcall
223 #ifndef TARGET_ASM_MARK_DECL_PRESERVED
224 #define TARGET_ASM_MARK_DECL_PRESERVED hook_void_constcharptr
227 #ifndef TARGET_ASM_OUTPUT_ANCHOR
228 #ifdef ASM_OUTPUT_DEF
229 #define TARGET_ASM_OUTPUT_ANCHOR default_asm_output_anchor
231 #define TARGET_ASM_OUTPUT_ANCHOR NULL
235 #ifndef TARGET_ASM_OUTPUT_DWARF_DTPREL
236 #define TARGET_ASM_OUTPUT_DWARF_DTPREL NULL
239 #ifndef TARGET_ASM_FINAL_POSTSCAN_INSN
240 #define TARGET_ASM_FINAL_POSTSCAN_INSN NULL
243 #ifndef TARGET_ASM_RECORD_GCC_SWITCHES
244 #define TARGET_ASM_RECORD_GCC_SWITCHES NULL
246 #ifndef TARGET_ASM_RECORD_GCC_SWITCHES_SECTION
247 #define TARGET_ASM_RECORD_GCC_SWITCHES_SECTION ".GCC.command.line"
250 #define TARGET_ASM_ALIGNED_INT_OP \
251 {TARGET_ASM_ALIGNED_HI_OP, \
252 TARGET_ASM_ALIGNED_SI_OP, \
253 TARGET_ASM_ALIGNED_DI_OP, \
254 TARGET_ASM_ALIGNED_TI_OP}
256 #define TARGET_ASM_UNALIGNED_INT_OP \
257 {TARGET_ASM_UNALIGNED_HI_OP, \
258 TARGET_ASM_UNALIGNED_SI_OP, \
259 TARGET_ASM_UNALIGNED_DI_OP, \
260 TARGET_ASM_UNALIGNED_TI_OP}
262 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN, \
263 TARGET_ASM_CLOSE_PAREN, \
264 TARGET_ASM_BYTE_OP, \
265 TARGET_ASM_ALIGNED_INT_OP, \
266 TARGET_ASM_UNALIGNED_INT_OP, \
267 TARGET_ASM_INTEGER, \
268 TARGET_ASM_GLOBALIZE_LABEL, \
269 TARGET_ASM_GLOBALIZE_DECL_NAME, \
270 TARGET_ASM_EMIT_UNWIND_LABEL, \
271 TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL, \
272 TARGET_UNWIND_EMIT, \
273 TARGET_ASM_INTERNAL_LABEL, \
275 TARGET_ASM_ASSEMBLE_VISIBILITY, \
276 TARGET_ASM_FUNCTION_PROLOGUE, \
277 TARGET_ASM_FUNCTION_END_PROLOGUE, \
278 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, \
279 TARGET_ASM_FUNCTION_EPILOGUE, \
280 TARGET_ASM_INIT_SECTIONS, \
281 TARGET_ASM_NAMED_SECTION, \
282 TARGET_ASM_RELOC_RW_MASK, \
283 TARGET_ASM_SELECT_SECTION, \
284 TARGET_ASM_SELECT_RTX_SECTION, \
285 TARGET_ASM_UNIQUE_SECTION, \
286 TARGET_ASM_FUNCTION_RODATA_SECTION, \
287 TARGET_ASM_CONSTRUCTOR, \
288 TARGET_ASM_DESTRUCTOR, \
289 TARGET_ASM_OUTPUT_MI_THUNK, \
290 TARGET_ASM_CAN_OUTPUT_MI_THUNK, \
291 TARGET_ASM_FILE_START, \
292 TARGET_ASM_FILE_END, \
293 TARGET_ASM_EXTERNAL_LIBCALL, \
294 TARGET_ASM_MARK_DECL_PRESERVED, \
295 TARGET_ASM_RECORD_GCC_SWITCHES, \
296 TARGET_ASM_RECORD_GCC_SWITCHES_SECTION, \
297 TARGET_ASM_OUTPUT_ANCHOR, \
298 TARGET_ASM_OUTPUT_DWARF_DTPREL, \
299 TARGET_ASM_FINAL_POSTSCAN_INSN}
301 /* Scheduler hooks. All of these default to null pointers, which
302 haifa-sched.c looks for and handles. */
303 #define TARGET_SCHED_ADJUST_COST 0
304 #define TARGET_SCHED_ADJUST_PRIORITY 0
305 #define TARGET_SCHED_ISSUE_RATE 0
306 #define TARGET_SCHED_VARIABLE_ISSUE 0
307 #define TARGET_SCHED_INIT 0
308 #define TARGET_SCHED_FINISH 0
309 #define TARGET_SCHED_INIT_GLOBAL 0
310 #define TARGET_SCHED_FINISH_GLOBAL 0
311 #define TARGET_SCHED_REORDER 0
312 #define TARGET_SCHED_REORDER2 0
313 #define TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK 0
314 #define TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN 0
315 #define TARGET_SCHED_DFA_PRE_CYCLE_INSN 0
316 #define TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN 0
317 #define TARGET_SCHED_DFA_POST_CYCLE_INSN 0
318 #define TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE 0
319 #define TARGET_SCHED_DFA_POST_ADVANCE_CYCLE 0
320 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD 0
321 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD 0
322 #define TARGET_SCHED_DFA_NEW_CYCLE 0
323 #define TARGET_SCHED_IS_COSTLY_DEPENDENCE 0
324 #define TARGET_SCHED_ADJUST_COST_2 0
325 #define TARGET_SCHED_H_I_D_EXTENDED 0
326 #define TARGET_SCHED_ALLOC_SCHED_CONTEXT 0
327 #define TARGET_SCHED_INIT_SCHED_CONTEXT 0
328 #define TARGET_SCHED_SET_SCHED_CONTEXT 0
329 #define TARGET_SCHED_CLEAR_SCHED_CONTEXT 0
330 #define TARGET_SCHED_FREE_SCHED_CONTEXT 0
331 #define TARGET_SCHED_SPECULATE_INSN 0
332 #define TARGET_SCHED_NEEDS_BLOCK_P 0
333 #define TARGET_SCHED_GEN_SPEC_CHECK 0
334 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC 0
335 #define TARGET_SCHED_SET_SCHED_FLAGS 0
336 #define TARGET_SCHED_GET_INSN_SPEC_DS 0
337 #define TARGET_SCHED_GET_INSN_CHECKED_DS 0
338 #define TARGET_SCHED_SKIP_RTX_P 0
339 #define TARGET_SCHED_SMS_RES_MII 0
341 #define TARGET_SCHED \
342 {TARGET_SCHED_ADJUST_COST, \
343 TARGET_SCHED_ADJUST_PRIORITY, \
344 TARGET_SCHED_ISSUE_RATE, \
345 TARGET_SCHED_VARIABLE_ISSUE, \
347 TARGET_SCHED_FINISH, \
348 TARGET_SCHED_INIT_GLOBAL, \
349 TARGET_SCHED_FINISH_GLOBAL, \
350 TARGET_SCHED_REORDER, \
351 TARGET_SCHED_REORDER2, \
352 TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK, \
353 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN, \
354 TARGET_SCHED_DFA_PRE_CYCLE_INSN, \
355 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN, \
356 TARGET_SCHED_DFA_POST_CYCLE_INSN, \
357 TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE, \
358 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE, \
359 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD, \
360 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD, \
361 TARGET_SCHED_DFA_NEW_CYCLE, \
362 TARGET_SCHED_IS_COSTLY_DEPENDENCE, \
363 TARGET_SCHED_ADJUST_COST_2, \
364 TARGET_SCHED_H_I_D_EXTENDED, \
365 TARGET_SCHED_ALLOC_SCHED_CONTEXT, \
366 TARGET_SCHED_INIT_SCHED_CONTEXT, \
367 TARGET_SCHED_SET_SCHED_CONTEXT, \
368 TARGET_SCHED_CLEAR_SCHED_CONTEXT, \
369 TARGET_SCHED_FREE_SCHED_CONTEXT, \
370 TARGET_SCHED_SPECULATE_INSN, \
371 TARGET_SCHED_NEEDS_BLOCK_P, \
372 TARGET_SCHED_GEN_SPEC_CHECK, \
373 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC, \
374 TARGET_SCHED_SET_SCHED_FLAGS, \
375 TARGET_SCHED_GET_INSN_SPEC_DS, \
376 TARGET_SCHED_GET_INSN_CHECKED_DS, \
377 TARGET_SCHED_SKIP_RTX_P, \
378 TARGET_SCHED_SMS_RES_MII}
380 #define TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD 0
381 #define TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION \
382 default_builtin_vectorized_function
383 #define TARGET_VECTORIZE_BUILTIN_CONVERSION \
384 default_builtin_vectorized_conversion
385 #define TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN 0
386 #define TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD 0
387 #define TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST 0
388 #define TARGET_VECTOR_ALIGNMENT_REACHABLE \
389 default_builtin_vector_alignment_reachable
390 #define TARGET_VECTORIZE_BUILTIN_VEC_PERM 0
392 #define TARGET_VECTORIZE \
394 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD, \
395 TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION, \
396 TARGET_VECTORIZE_BUILTIN_CONVERSION, \
397 TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN, \
398 TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD, \
399 TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST, \
400 TARGET_VECTOR_ALIGNMENT_REACHABLE, \
401 TARGET_VECTORIZE_BUILTIN_VEC_PERM \
404 #define TARGET_DEFAULT_TARGET_FLAGS 0
406 #define TARGET_HANDLE_OPTION hook_bool_size_t_constcharptr_int_true
407 #define TARGET_HELP NULL
410 #define TARGET_EH_RETURN_FILTER_MODE default_eh_return_filter_mode
413 #define TARGET_LIBGCC_CMP_RETURN_MODE default_libgcc_cmp_return_mode
414 #define TARGET_LIBGCC_SHIFT_COUNT_MODE default_libgcc_shift_count_mode
416 /* In unwind-generic.h. */
417 #define TARGET_UNWIND_WORD_MODE default_unwind_word_mode
420 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
421 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
422 #define TARGET_ATTRIBUTE_TABLE NULL
425 #define TARGET_ADDRESS_COST default_address_cost
426 #define TARGET_CONST_ANCHOR 0
429 #define TARGET_INIT_BUILTINS hook_void_void
430 #define TARGET_EXPAND_BUILTIN default_expand_builtin
431 #define TARGET_RESOLVE_OVERLOADED_BUILTIN NULL
432 #define TARGET_FOLD_BUILTIN hook_tree_tree_tree_bool_null
434 /* In tree-ssa-math-opts.c */
435 #define TARGET_BUILTIN_RECIPROCAL default_builtin_reciprocal
438 #ifndef TARGET_SECTION_TYPE_FLAGS
439 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
442 #ifndef TARGET_STRIP_NAME_ENCODING
443 #define TARGET_STRIP_NAME_ENCODING default_strip_name_encoding
446 #ifndef TARGET_BINDS_LOCAL_P
447 #define TARGET_BINDS_LOCAL_P default_binds_local_p
450 #ifndef TARGET_SHIFT_TRUNCATION_MASK
451 #define TARGET_SHIFT_TRUNCATION_MASK default_shift_truncation_mask
454 #ifndef TARGET_MIN_DIVISIONS_FOR_RECIP_MUL
455 #define TARGET_MIN_DIVISIONS_FOR_RECIP_MUL default_min_divisions_for_recip_mul
458 #ifndef TARGET_MODE_REP_EXTENDED
459 #define TARGET_MODE_REP_EXTENDED default_mode_rep_extended
462 #ifndef TARGET_VALID_POINTER_MODE
463 #define TARGET_VALID_POINTER_MODE default_valid_pointer_mode
466 #ifndef TARGET_SCALAR_MODE_SUPPORTED_P
467 #define TARGET_SCALAR_MODE_SUPPORTED_P default_scalar_mode_supported_p
470 #ifndef TARGET_DECIMAL_FLOAT_SUPPORTED_P
471 #define TARGET_DECIMAL_FLOAT_SUPPORTED_P default_decimal_float_supported_p
474 #ifndef TARGET_FIXED_POINT_SUPPORTED_P
475 #define TARGET_FIXED_POINT_SUPPORTED_P default_fixed_point_supported_p
478 #ifndef TARGET_VECTOR_MODE_SUPPORTED_P
479 #define TARGET_VECTOR_MODE_SUPPORTED_P hook_bool_mode_false
483 #define TARGET_CANNOT_MODIFY_JUMPS_P hook_bool_void_false
484 #define TARGET_BRANCH_TARGET_REGISTER_CLASS \
485 default_branch_target_register_class
486 #define TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED hook_bool_bool_false
487 #define TARGET_CANNOT_FORCE_CONST_MEM hook_bool_rtx_false
488 #define TARGET_CANNOT_COPY_INSN_P NULL
489 #define TARGET_COMMUTATIVE_P hook_bool_const_rtx_commutative_p
490 #define TARGET_LEGITIMIZE_ADDRESS default_legitimize_address
491 #define TARGET_DELEGITIMIZE_ADDRESS hook_rtx_rtx_identity
492 #define TARGET_LEGITIMATE_ADDRESS_P default_legitimate_address_p
493 #define TARGET_USE_BLOCKS_FOR_CONSTANT_P hook_bool_mode_const_rtx_false
494 #define TARGET_MIN_ANCHOR_OFFSET 0
495 #define TARGET_MAX_ANCHOR_OFFSET 0
496 #define TARGET_USE_ANCHORS_FOR_SYMBOL_P default_use_anchors_for_symbol_p
497 #define TARGET_FUNCTION_OK_FOR_SIBCALL hook_bool_tree_tree_false
498 #define TARGET_COMP_TYPE_ATTRIBUTES hook_int_const_tree_const_tree_1
499 #ifndef TARGET_SET_DEFAULT_TYPE_ATTRIBUTES
500 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES hook_void_tree
502 #define TARGET_INSERT_ATTRIBUTES hook_void_tree_treeptr
503 #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_const_tree_false
504 #define TARGET_MS_BITFIELD_LAYOUT_P hook_bool_const_tree_false
505 #define TARGET_ALIGN_ANON_BITFIELD hook_bool_void_false
506 #define TARGET_NARROW_VOLATILE_BITFIELD hook_bool_void_false
507 #define TARGET_RTX_COSTS hook_bool_rtx_int_int_intp_bool_false
508 #define TARGET_MANGLE_TYPE hook_constcharptr_const_tree_null
509 #define TARGET_ALLOCATE_INITIAL_VALUE NULL
511 #define TARGET_UNSPEC_MAY_TRAP_P default_unspec_may_trap_p
513 #ifndef TARGET_SET_CURRENT_FUNCTION
514 #define TARGET_SET_CURRENT_FUNCTION hook_void_tree
517 #ifndef TARGET_INIT_LIBFUNCS
518 #define TARGET_INIT_LIBFUNCS hook_void_void
521 #ifndef TARGET_IN_SMALL_DATA_P
522 #define TARGET_IN_SMALL_DATA_P hook_bool_const_tree_false
525 #ifndef TARGET_MANGLE_DECL_ASSEMBLER_NAME
526 #define TARGET_MANGLE_DECL_ASSEMBLER_NAME default_mangle_decl_assembler_name
529 #ifndef TARGET_ENCODE_SECTION_INFO
530 #define TARGET_ENCODE_SECTION_INFO default_encode_section_info
533 #ifndef TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
534 #define TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN hook_invalid_arg_for_unprototyped_fn
537 #define TARGET_INVALID_CONVERSION hook_constcharptr_const_tree_const_tree_null
538 #define TARGET_INVALID_UNARY_OP hook_constcharptr_int_const_tree_null
539 #define TARGET_INVALID_BINARY_OP hook_constcharptr_int_const_tree_const_tree_null
540 #define TARGET_INVALID_PARAMETER_TYPE hook_constcharptr_const_tree_null
541 #define TARGET_INVALID_RETURN_TYPE hook_constcharptr_const_tree_null
542 #define TARGET_PROMOTED_TYPE hook_tree_const_tree_null
543 #define TARGET_CONVERT_TO_TYPE hook_tree_tree_tree_null
545 #define TARGET_FIXED_CONDITION_CODE_REGS hook_bool_uintp_uintp_false
547 #define TARGET_CC_MODES_COMPATIBLE default_cc_modes_compatible
549 #define TARGET_MACHINE_DEPENDENT_REORG 0
551 #define TARGET_BUILD_BUILTIN_VA_LIST std_build_builtin_va_list
552 #define TARGET_FN_ABI_VA_LIST std_fn_abi_va_list
553 #define TARGET_CANONICAL_VA_LIST_TYPE std_canonical_va_list_type
554 #define TARGET_EXPAND_BUILTIN_VA_START 0
556 #define TARGET_GET_PCH_VALIDITY default_get_pch_validity
557 #define TARGET_PCH_VALID_P default_pch_valid_p
558 #define TARGET_CHECK_PCH_TARGET_FLAGS NULL
560 #define TARGET_DEFAULT_SHORT_ENUMS hook_bool_void_false
562 #define TARGET_BUILTIN_SETJMP_FRAME_VALUE default_builtin_setjmp_frame_value
564 #define TARGET_MD_ASM_CLOBBERS hook_tree_tree_tree_tree_3rd_identity
566 #define TARGET_DWARF_CALLING_CONVENTION hook_int_const_tree_0
568 #define TARGET_DWARF_HANDLE_FRAME_UNSPEC 0
570 #define TARGET_STDARG_OPTIMIZE_HOOK 0
572 #define TARGET_STACK_PROTECT_GUARD default_stack_protect_guard
573 #define TARGET_STACK_PROTECT_FAIL default_external_stack_protect_fail
575 #define TARGET_ARM_EABI_UNWINDER false
577 #define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_const_tree_false
578 #define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_const_tree_false
579 #define TARGET_PROMOTE_PROTOTYPES hook_bool_const_tree_false
581 #define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null
582 #define TARGET_RETURN_IN_MEMORY default_return_in_memory
583 #define TARGET_RETURN_IN_MSB hook_bool_const_tree_false
585 #define TARGET_EXPAND_BUILTIN_SAVEREGS default_expand_builtin_saveregs
586 #define TARGET_SETUP_INCOMING_VARARGS default_setup_incoming_varargs
587 #define TARGET_STRICT_ARGUMENT_NAMING hook_bool_CUMULATIVE_ARGS_false
588 #define TARGET_PRETEND_OUTGOING_VARARGS_NAMED \
589 default_pretend_outgoing_varargs_named
590 #define TARGET_SPLIT_COMPLEX_ARG NULL
592 #define TARGET_GIMPLIFY_VA_ARG_EXPR std_gimplify_va_arg_expr
593 #define TARGET_PASS_BY_REFERENCE hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
595 #define TARGET_RELAXED_ORDERING false
597 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size_or_pad
598 #define TARGET_CALLEE_COPIES hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
599 #define TARGET_ARG_PARTIAL_BYTES hook_int_CUMULATIVE_ARGS_mode_tree_bool_0
601 #define TARGET_FUNCTION_VALUE default_function_value
602 #define TARGET_INTERNAL_ARG_POINTER default_internal_arg_pointer
603 #define TARGET_UPDATE_STACK_BOUNDARY NULL
604 #define TARGET_GET_DRAP_RTX NULL
605 #define TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS hook_bool_void_true
607 #define TARGET_CALLS { \
608 TARGET_PROMOTE_FUNCTION_ARGS, \
609 TARGET_PROMOTE_FUNCTION_RETURN, \
610 TARGET_PROMOTE_PROTOTYPES, \
611 TARGET_STRUCT_VALUE_RTX, \
612 TARGET_RETURN_IN_MEMORY, \
613 TARGET_RETURN_IN_MSB, \
614 TARGET_PASS_BY_REFERENCE, \
615 TARGET_EXPAND_BUILTIN_SAVEREGS, \
616 TARGET_SETUP_INCOMING_VARARGS, \
617 TARGET_STRICT_ARGUMENT_NAMING, \
618 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, \
619 TARGET_SPLIT_COMPLEX_ARG, \
620 TARGET_MUST_PASS_IN_STACK, \
621 TARGET_CALLEE_COPIES, \
622 TARGET_ARG_PARTIAL_BYTES, \
623 TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN, \
624 TARGET_FUNCTION_VALUE, \
625 TARGET_INTERNAL_ARG_POINTER, \
626 TARGET_UPDATE_STACK_BOUNDARY, \
627 TARGET_GET_DRAP_RTX, \
628 TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS \
631 #ifndef TARGET_UNWIND_TABLES_DEFAULT
632 #define TARGET_UNWIND_TABLES_DEFAULT false
635 #ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
636 #define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
639 #ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
640 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
643 #ifdef IRA_COVER_CLASSES
644 #define TARGET_IRA_COVER_CLASSES default_ira_cover_classes
646 #define TARGET_IRA_COVER_CLASSES 0
649 #ifndef TARGET_SECONDARY_RELOAD
650 #define TARGET_SECONDARY_RELOAD default_secondary_reload
653 #ifndef TARGET_EXPAND_TO_RTL_HOOK
654 #define TARGET_EXPAND_TO_RTL_HOOK hook_void_void
657 #ifndef TARGET_INSTANTIATE_DECLS
658 #define TARGET_INSTANTIATE_DECLS hook_void_void
661 #ifndef TARGET_HARD_REGNO_SCRATCH_OK
662 #define TARGET_HARD_REGNO_SCRATCH_OK default_hard_regno_scratch_ok
665 #ifndef TARGET_CASE_VALUES_THRESHOLD
666 #define TARGET_CASE_VALUES_THRESHOLD default_case_values_threshold
670 #ifndef TARGET_C_MODE_FOR_SUFFIX
671 #define TARGET_C_MODE_FOR_SUFFIX default_mode_for_suffix
676 TARGET_C_MODE_FOR_SUFFIX \
680 #ifndef TARGET_CXX_GUARD_TYPE
681 #define TARGET_CXX_GUARD_TYPE default_cxx_guard_type
684 #ifndef TARGET_CXX_GUARD_MASK_BIT
685 #define TARGET_CXX_GUARD_MASK_BIT hook_bool_void_false
688 #ifndef TARGET_CXX_GET_COOKIE_SIZE
689 #define TARGET_CXX_GET_COOKIE_SIZE default_cxx_get_cookie_size
692 #ifndef TARGET_CXX_COOKIE_HAS_SIZE
693 #define TARGET_CXX_COOKIE_HAS_SIZE hook_bool_void_false
696 #ifndef TARGET_CXX_IMPORT_EXPORT_CLASS
697 #define TARGET_CXX_IMPORT_EXPORT_CLASS NULL
700 #ifndef TARGET_CXX_CDTOR_RETURNS_THIS
701 #define TARGET_CXX_CDTOR_RETURNS_THIS hook_bool_void_false
704 #ifndef TARGET_CXX_KEY_METHOD_MAY_BE_INLINE
705 #define TARGET_CXX_KEY_METHOD_MAY_BE_INLINE hook_bool_void_true
708 #ifndef TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY
709 #define TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY hook_void_tree
712 #ifndef TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT
713 #define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_true
716 #ifndef TARGET_CXX_LIBRARY_RTTI_COMDAT
717 #define TARGET_CXX_LIBRARY_RTTI_COMDAT hook_bool_void_true
720 #ifndef TARGET_CXX_USE_AEABI_ATEXIT
721 #define TARGET_CXX_USE_AEABI_ATEXIT hook_bool_void_false
724 #ifndef TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT
725 #define TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT hook_bool_void_false
728 #ifndef TARGET_CXX_ADJUST_CLASS_AT_DEFINITION
729 #define TARGET_CXX_ADJUST_CLASS_AT_DEFINITION hook_void_tree
734 TARGET_CXX_GUARD_TYPE, \
735 TARGET_CXX_GUARD_MASK_BIT, \
736 TARGET_CXX_GET_COOKIE_SIZE, \
737 TARGET_CXX_COOKIE_HAS_SIZE, \
738 TARGET_CXX_IMPORT_EXPORT_CLASS, \
739 TARGET_CXX_CDTOR_RETURNS_THIS, \
740 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE, \
741 TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY, \
742 TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT, \
743 TARGET_CXX_LIBRARY_RTTI_COMDAT, \
744 TARGET_CXX_USE_AEABI_ATEXIT, \
745 TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT, \
746 TARGET_CXX_ADJUST_CLASS_AT_DEFINITION \
749 /* EMUTLS specific */
750 #ifndef TARGET_EMUTLS_GET_ADDRESS
751 #define TARGET_EMUTLS_GET_ADDRESS "__builtin___emutls_get_address"
754 #ifndef TARGET_EMUTLS_REGISTER_COMMON
755 #define TARGET_EMUTLS_REGISTER_COMMON "__builtin___emutls_register_common"
758 #ifndef TARGET_EMUTLS_VAR_SECTION
759 #define TARGET_EMUTLS_VAR_SECTION NULL
762 #ifndef TARGET_EMUTLS_TMPL_SECTION
763 #define TARGET_EMUTLS_TMPL_SECTION NULL
766 #ifndef TARGET_EMUTLS_VAR_PREFIX
767 #define TARGET_EMUTLS_VAR_PREFIX NULL
770 #ifndef TARGET_EMUTLS_TMPL_PREFIX
771 #define TARGET_EMUTLS_TMPL_PREFIX NULL
774 #ifndef TARGET_EMUTLS_VAR_FIELDS
775 #define TARGET_EMUTLS_VAR_FIELDS default_emutls_var_fields
778 #ifndef TARGET_EMUTLS_VAR_INIT
779 #define TARGET_EMUTLS_VAR_INIT default_emutls_var_init
782 #ifndef TARGET_EMUTLS_VAR_ALIGN_FIXED
783 #define TARGET_EMUTLS_VAR_ALIGN_FIXED false
786 #ifndef TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS
787 #define TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS false
790 #define TARGET_EMUTLS \
792 TARGET_EMUTLS_GET_ADDRESS, \
793 TARGET_EMUTLS_REGISTER_COMMON, \
794 TARGET_EMUTLS_VAR_SECTION, \
795 TARGET_EMUTLS_TMPL_SECTION, \
796 TARGET_EMUTLS_VAR_PREFIX, \
797 TARGET_EMUTLS_TMPL_PREFIX, \
798 TARGET_EMUTLS_VAR_FIELDS, \
799 TARGET_EMUTLS_VAR_INIT, \
800 TARGET_EMUTLS_VAR_ALIGN_FIXED, \
801 TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS \
804 /* Function specific option attribute support. */
805 #ifndef TARGET_OPTION_VALID_ATTRIBUTE_P
806 #define TARGET_OPTION_VALID_ATTRIBUTE_P \
807 default_target_option_valid_attribute_p
810 #ifndef TARGET_OPTION_SAVE
811 #define TARGET_OPTION_SAVE NULL
814 #ifndef TARGET_OPTION_RESTORE
815 #define TARGET_OPTION_RESTORE NULL
818 #ifndef TARGET_OPTION_PRINT
819 #define TARGET_OPTION_PRINT NULL
822 #ifndef TARGET_OPTION_PRAGMA_PARSE
823 #define TARGET_OPTION_PRAGMA_PARSE default_target_option_pragma_parse
826 #ifndef TARGET_OPTION_CAN_INLINE_P
827 #define TARGET_OPTION_CAN_INLINE_P default_target_option_can_inline_p
830 #define TARGET_OPTION_HOOKS \
832 TARGET_OPTION_VALID_ATTRIBUTE_P, \
833 TARGET_OPTION_SAVE, \
834 TARGET_OPTION_RESTORE, \
835 TARGET_OPTION_PRINT, \
836 TARGET_OPTION_PRAGMA_PARSE, \
837 TARGET_OPTION_CAN_INLINE_P, \
840 /* The whole shebang. */
841 #define TARGET_INITIALIZER \
846 TARGET_DEFAULT_TARGET_FLAGS, \
847 TARGET_HANDLE_OPTION, \
849 TARGET_EH_RETURN_FILTER_MODE, \
850 TARGET_LIBGCC_CMP_RETURN_MODE, \
851 TARGET_LIBGCC_SHIFT_COUNT_MODE, \
852 TARGET_UNWIND_WORD_MODE, \
853 TARGET_MERGE_DECL_ATTRIBUTES, \
854 TARGET_MERGE_TYPE_ATTRIBUTES, \
855 TARGET_ATTRIBUTE_TABLE, \
856 TARGET_COMP_TYPE_ATTRIBUTES, \
857 TARGET_SET_DEFAULT_TYPE_ATTRIBUTES, \
858 TARGET_INSERT_ATTRIBUTES, \
859 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P, \
860 TARGET_MS_BITFIELD_LAYOUT_P, \
861 TARGET_DECIMAL_FLOAT_SUPPORTED_P, \
862 TARGET_FIXED_POINT_SUPPORTED_P, \
863 TARGET_ALIGN_ANON_BITFIELD, \
864 TARGET_NARROW_VOLATILE_BITFIELD, \
865 TARGET_INIT_BUILTINS, \
866 TARGET_EXPAND_BUILTIN, \
867 TARGET_RESOLVE_OVERLOADED_BUILTIN, \
868 TARGET_FOLD_BUILTIN, \
869 TARGET_BUILTIN_RECIPROCAL, \
870 TARGET_MANGLE_TYPE, \
871 TARGET_INIT_LIBFUNCS, \
872 TARGET_SECTION_TYPE_FLAGS, \
873 TARGET_CANNOT_MODIFY_JUMPS_P, \
874 TARGET_BRANCH_TARGET_REGISTER_CLASS, \
875 TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED, \
876 TARGET_CANNOT_FORCE_CONST_MEM, \
877 TARGET_CANNOT_COPY_INSN_P, \
878 TARGET_COMMUTATIVE_P, \
879 TARGET_LEGITIMIZE_ADDRESS, \
880 TARGET_DELEGITIMIZE_ADDRESS, \
881 TARGET_LEGITIMATE_ADDRESS_P, \
882 TARGET_USE_BLOCKS_FOR_CONSTANT_P, \
883 TARGET_MIN_ANCHOR_OFFSET, \
884 TARGET_MAX_ANCHOR_OFFSET, \
885 TARGET_USE_ANCHORS_FOR_SYMBOL_P, \
886 TARGET_FUNCTION_OK_FOR_SIBCALL, \
887 TARGET_SET_CURRENT_FUNCTION, \
888 TARGET_IN_SMALL_DATA_P, \
889 TARGET_BINDS_LOCAL_P, \
890 TARGET_MANGLE_DECL_ASSEMBLER_NAME, \
891 TARGET_ENCODE_SECTION_INFO, \
892 TARGET_STRIP_NAME_ENCODING, \
893 TARGET_SHIFT_TRUNCATION_MASK, \
894 TARGET_MIN_DIVISIONS_FOR_RECIP_MUL, \
895 TARGET_MODE_REP_EXTENDED, \
896 TARGET_VALID_POINTER_MODE, \
897 TARGET_SCALAR_MODE_SUPPORTED_P, \
898 TARGET_VECTOR_MODE_SUPPORTED_P, \
900 TARGET_ADDRESS_COST, \
901 TARGET_ALLOCATE_INITIAL_VALUE, \
902 TARGET_UNSPEC_MAY_TRAP_P, \
903 TARGET_DWARF_REGISTER_SPAN, \
904 TARGET_INIT_DWARF_REG_SIZES_EXTRA, \
905 TARGET_FIXED_CONDITION_CODE_REGS, \
906 TARGET_CC_MODES_COMPATIBLE, \
907 TARGET_MACHINE_DEPENDENT_REORG, \
908 TARGET_BUILD_BUILTIN_VA_LIST, \
909 TARGET_FN_ABI_VA_LIST, \
910 TARGET_CANONICAL_VA_LIST_TYPE, \
911 TARGET_EXPAND_BUILTIN_VA_START, \
912 TARGET_GIMPLIFY_VA_ARG_EXPR, \
913 TARGET_GET_PCH_VALIDITY, \
914 TARGET_PCH_VALID_P, \
915 TARGET_CHECK_PCH_TARGET_FLAGS, \
916 TARGET_DEFAULT_SHORT_ENUMS, \
917 TARGET_BUILTIN_SETJMP_FRAME_VALUE, \
918 TARGET_MD_ASM_CLOBBERS, \
919 TARGET_DWARF_CALLING_CONVENTION, \
920 TARGET_DWARF_HANDLE_FRAME_UNSPEC, \
921 TARGET_STDARG_OPTIMIZE_HOOK, \
922 TARGET_STACK_PROTECT_GUARD, \
923 TARGET_STACK_PROTECT_FAIL, \
924 TARGET_INVALID_WITHIN_DOLOOP, \
925 TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, \
926 TARGET_CONST_ANCHOR, \
928 TARGET_INVALID_CONVERSION, \
929 TARGET_INVALID_UNARY_OP, \
930 TARGET_INVALID_BINARY_OP, \
931 TARGET_INVALID_PARAMETER_TYPE, \
932 TARGET_INVALID_RETURN_TYPE, \
933 TARGET_PROMOTED_TYPE, \
934 TARGET_CONVERT_TO_TYPE, \
935 TARGET_IRA_COVER_CLASSES, \
936 TARGET_SECONDARY_RELOAD, \
937 TARGET_EXPAND_TO_RTL_HOOK, \
938 TARGET_INSTANTIATE_DECLS, \
939 TARGET_HARD_REGNO_SCRATCH_OK, \
940 TARGET_CASE_VALUES_THRESHOLD, \
944 TARGET_OPTION_HOOKS, \
945 TARGET_EXTRA_LIVE_ON_ENTRY, \
946 TARGET_UNWIND_TABLES_DEFAULT, \
947 TARGET_HAVE_NAMED_SECTIONS, \
948 TARGET_HAVE_SWITCHABLE_BSS_SECTIONS, \
949 TARGET_HAVE_CTORS_DTORS, \
951 TARGET_HAVE_SRODATA_SECTION, \
952 TARGET_TERMINATE_DW2_EH_FRAME_INFO, \
953 TARGET_ASM_FILE_START_APP_OFF, \
954 TARGET_ASM_FILE_START_FILE_DIRECTIVE, \
955 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME, \
956 TARGET_HANDLE_PRAGMA_EXTERN_PREFIX, \
957 TARGET_RELAXED_ORDERING, \
958 TARGET_ARM_EABI_UNWINDER \
961 #define TARGET_HANDLE_C_OPTION default_handle_c_option
962 #define TARGETCM_INITIALIZER { TARGET_HANDLE_C_OPTION }
965 #include "targhooks.h"