* sv.po, zh_CN.po: Update.
[official-gcc.git] / gcc / target-def.h
blob6f8470e4aec52b9b21a4b6e681cdcbd0cb7ddcef
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_UNWIND_EMIT
66 #define TARGET_UNWIND_EMIT default_unwind_emit
67 #endif
69 #ifndef TARGET_ASM_INTERNAL_LABEL
70 #define TARGET_ASM_INTERNAL_LABEL default_internal_label
71 #endif
73 #ifndef TARGET_ARM_TTYPE
74 #define TARGET_ASM_TTYPE hook_bool_rtx_false
75 #endif
77 #ifndef TARGET_ASM_ASSEMBLE_VISIBILITY
78 #define TARGET_ASM_ASSEMBLE_VISIBILITY default_assemble_visibility
79 #endif
81 #define TARGET_ASM_FUNCTION_PROLOGUE default_function_pro_epilogue
82 #define TARGET_ASM_FUNCTION_EPILOGUE default_function_pro_epilogue
83 #define TARGET_ASM_FUNCTION_END_PROLOGUE no_asm_to_stream
84 #define TARGET_ASM_FUNCTION_BEGIN_EPILOGUE no_asm_to_stream
86 #ifndef TARGET_ASM_SELECT_SECTION
87 #define TARGET_ASM_SELECT_SECTION default_select_section
88 #endif
90 #ifndef TARGET_ASM_UNIQUE_SECTION
91 #define TARGET_ASM_UNIQUE_SECTION default_unique_section
92 #endif
94 #ifndef TARGET_ASM_FUNCTION_RODATA_SECTION
95 #define TARGET_ASM_FUNCTION_RODATA_SECTION default_function_rodata_section
96 #endif
98 #ifndef TARGET_ASM_SELECT_RTX_SECTION
99 #define TARGET_ASM_SELECT_RTX_SECTION default_select_rtx_section
100 #endif
102 #if !defined(TARGET_ASM_CONSTRUCTOR) && !defined(USE_COLLECT2)
103 # ifdef CTORS_SECTION_ASM_OP
104 # define TARGET_ASM_CONSTRUCTOR default_ctor_section_asm_out_constructor
105 # else
106 # ifdef TARGET_ASM_NAMED_SECTION
107 # define TARGET_ASM_CONSTRUCTOR default_named_section_asm_out_constructor
108 # else
109 # define TARGET_ASM_CONSTRUCTOR default_stabs_asm_out_constructor
110 # endif
111 # endif
112 #endif
114 #if !defined(TARGET_ASM_DESTRUCTOR) && !defined(USE_COLLECT2)
115 # ifdef DTORS_SECTION_ASM_OP
116 # define TARGET_ASM_DESTRUCTOR default_dtor_section_asm_out_destructor
117 # else
118 # ifdef TARGET_ASM_NAMED_SECTION
119 # define TARGET_ASM_DESTRUCTOR default_named_section_asm_out_destructor
120 # else
121 # define TARGET_ASM_DESTRUCTOR default_stabs_asm_out_destructor
122 # endif
123 # endif
124 #endif
126 #define TARGET_ASM_OUTPUT_MI_THUNK NULL
127 #define TARGET_ASM_CAN_OUTPUT_MI_THUNK hook_bool_tree_hwi_hwi_tree_false
129 #if defined(TARGET_ASM_CONSTRUCTOR) && defined(TARGET_ASM_DESTRUCTOR)
130 #define TARGET_HAVE_CTORS_DTORS true
131 #else
132 #define TARGET_HAVE_CTORS_DTORS false
133 #define TARGET_ASM_CONSTRUCTOR NULL
134 #define TARGET_ASM_DESTRUCTOR NULL
135 #endif
137 #ifdef TARGET_ASM_NAMED_SECTION
138 #define TARGET_HAVE_NAMED_SECTIONS true
139 #else
140 #define TARGET_ASM_NAMED_SECTION default_no_named_section
141 #define TARGET_HAVE_NAMED_SECTIONS false
142 #endif
144 #ifndef TARGET_INVALID_WITHIN_DOLOOP
145 #define TARGET_INVALID_WITHIN_DOLOOP default_invalid_within_doloop
146 #endif
148 #ifndef TARGET_HAVE_TLS
149 #define TARGET_HAVE_TLS false
150 #endif
152 #ifndef TARGET_HAVE_SRODATA_SECTION
153 #define TARGET_HAVE_SRODATA_SECTION false
154 #endif
156 #ifndef TARGET_TERMINATE_DW2_EH_FRAME_INFO
157 #ifdef EH_FRAME_SECTION_NAME
158 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO false
159 #else
160 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO true
161 #endif
162 #endif
164 #define TARGET_DWARF_REGISTER_SPAN hook_rtx_rtx_null
166 #ifndef TARGET_ASM_EXCEPTION_SECTION
167 #define TARGET_ASM_EXCEPTION_SECTION default_exception_section
168 #endif
170 #ifndef TARGET_ASM_EH_FRAME_SECTION
171 #define TARGET_ASM_EH_FRAME_SECTION default_eh_frame_section
172 #endif
174 #ifndef TARGET_ASM_FILE_START
175 #define TARGET_ASM_FILE_START default_file_start
176 #endif
178 #ifndef TARGET_ASM_FILE_END
179 #define TARGET_ASM_FILE_END hook_void_void
180 #endif
182 #ifndef TARGET_ASM_FILE_START_APP_OFF
183 #define TARGET_ASM_FILE_START_APP_OFF false
184 #endif
186 #ifndef TARGET_ASM_FILE_START_FILE_DIRECTIVE
187 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE false
188 #endif
190 #ifndef TARGET_ASM_EXTERNAL_LIBCALL
191 #define TARGET_ASM_EXTERNAL_LIBCALL default_external_libcall
192 #endif
194 #ifndef TARGET_ASM_MARK_DECL_PRESERVED
195 #define TARGET_ASM_MARK_DECL_PRESERVED hook_void_constcharptr
196 #endif
198 #ifndef TARGET_ASM_OUTPUT_DWARF_DTPREL
199 #define TARGET_ASM_OUTPUT_DWARF_DTPREL NULL
200 #endif
202 #define TARGET_ASM_ALIGNED_INT_OP \
203 {TARGET_ASM_ALIGNED_HI_OP, \
204 TARGET_ASM_ALIGNED_SI_OP, \
205 TARGET_ASM_ALIGNED_DI_OP, \
206 TARGET_ASM_ALIGNED_TI_OP}
208 #define TARGET_ASM_UNALIGNED_INT_OP \
209 {TARGET_ASM_UNALIGNED_HI_OP, \
210 TARGET_ASM_UNALIGNED_SI_OP, \
211 TARGET_ASM_UNALIGNED_DI_OP, \
212 TARGET_ASM_UNALIGNED_TI_OP}
214 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN, \
215 TARGET_ASM_CLOSE_PAREN, \
216 TARGET_ASM_BYTE_OP, \
217 TARGET_ASM_ALIGNED_INT_OP, \
218 TARGET_ASM_UNALIGNED_INT_OP, \
219 TARGET_ASM_INTEGER, \
220 TARGET_ASM_GLOBALIZE_LABEL, \
221 TARGET_ASM_EMIT_UNWIND_LABEL, \
222 TARGET_UNWIND_EMIT, \
223 TARGET_ASM_INTERNAL_LABEL, \
224 TARGET_ASM_TTYPE, \
225 TARGET_ASM_ASSEMBLE_VISIBILITY, \
226 TARGET_ASM_FUNCTION_PROLOGUE, \
227 TARGET_ASM_FUNCTION_END_PROLOGUE, \
228 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, \
229 TARGET_ASM_FUNCTION_EPILOGUE, \
230 TARGET_ASM_NAMED_SECTION, \
231 TARGET_ASM_EXCEPTION_SECTION, \
232 TARGET_ASM_EH_FRAME_SECTION, \
233 TARGET_ASM_SELECT_SECTION, \
234 TARGET_ASM_SELECT_RTX_SECTION, \
235 TARGET_ASM_UNIQUE_SECTION, \
236 TARGET_ASM_FUNCTION_RODATA_SECTION, \
237 TARGET_ASM_CONSTRUCTOR, \
238 TARGET_ASM_DESTRUCTOR, \
239 TARGET_ASM_OUTPUT_MI_THUNK, \
240 TARGET_ASM_CAN_OUTPUT_MI_THUNK, \
241 TARGET_ASM_FILE_START, \
242 TARGET_ASM_FILE_END, \
243 TARGET_ASM_EXTERNAL_LIBCALL, \
244 TARGET_ASM_MARK_DECL_PRESERVED, \
245 TARGET_ASM_OUTPUT_DWARF_DTPREL}
247 /* Scheduler hooks. All of these default to null pointers, which
248 haifa-sched.c looks for and handles. */
249 #define TARGET_SCHED_ADJUST_COST 0
250 #define TARGET_SCHED_ADJUST_PRIORITY 0
251 #define TARGET_SCHED_ISSUE_RATE 0
252 #define TARGET_SCHED_VARIABLE_ISSUE 0
253 #define TARGET_SCHED_INIT 0
254 #define TARGET_SCHED_FINISH 0
255 #define TARGET_SCHED_INIT_GLOBAL 0
256 #define TARGET_SCHED_FINISH_GLOBAL 0
257 #define TARGET_SCHED_REORDER 0
258 #define TARGET_SCHED_REORDER2 0
259 #define TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK 0
260 #define TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN 0
261 #define TARGET_SCHED_DFA_PRE_CYCLE_INSN 0
262 #define TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN 0
263 #define TARGET_SCHED_DFA_POST_CYCLE_INSN 0
264 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD 0
265 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD 0
266 #define TARGET_SCHED_DFA_NEW_CYCLE 0
267 #define TARGET_SCHED_IS_COSTLY_DEPENDENCE 0
269 #define TARGET_SCHED \
270 {TARGET_SCHED_ADJUST_COST, \
271 TARGET_SCHED_ADJUST_PRIORITY, \
272 TARGET_SCHED_ISSUE_RATE, \
273 TARGET_SCHED_VARIABLE_ISSUE, \
274 TARGET_SCHED_INIT, \
275 TARGET_SCHED_FINISH, \
276 TARGET_SCHED_INIT_GLOBAL, \
277 TARGET_SCHED_FINISH_GLOBAL, \
278 TARGET_SCHED_REORDER, \
279 TARGET_SCHED_REORDER2, \
280 TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK, \
281 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN, \
282 TARGET_SCHED_DFA_PRE_CYCLE_INSN, \
283 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN, \
284 TARGET_SCHED_DFA_POST_CYCLE_INSN, \
285 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD, \
286 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD, \
287 TARGET_SCHED_DFA_NEW_CYCLE, \
288 TARGET_SCHED_IS_COSTLY_DEPENDENCE}
290 #define TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD 0
292 #define TARGET_VECTORIZE \
293 {TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD}
295 #define TARGET_DEFAULT_TARGET_FLAGS 0
297 #define TARGET_HANDLE_OPTION hook_bool_size_t_constcharptr_int_true
299 /* In except.c */
300 #define TARGET_EH_RETURN_FILTER_MODE default_eh_return_filter_mode
302 /* In tree.c. */
303 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
304 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
305 #define TARGET_ATTRIBUTE_TABLE NULL
307 /* In cse.c. */
308 #define TARGET_ADDRESS_COST default_address_cost
310 /* In builtins.c. */
311 #define TARGET_INIT_BUILTINS hook_void_void
312 #define TARGET_EXPAND_BUILTIN default_expand_builtin
313 #define TARGET_RESOLVE_OVERLOADED_BUILTIN NULL
314 #define TARGET_FOLD_BUILTIN hook_tree_tree_tree_bool_null
316 /* In varasm.c. */
317 #ifndef TARGET_SECTION_TYPE_FLAGS
318 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
319 #endif
321 #ifndef TARGET_STRIP_NAME_ENCODING
322 #define TARGET_STRIP_NAME_ENCODING default_strip_name_encoding
323 #endif
325 #ifndef TARGET_BINDS_LOCAL_P
326 #define TARGET_BINDS_LOCAL_P default_binds_local_p
327 #endif
329 #ifndef TARGET_SHIFT_TRUNCATION_MASK
330 #define TARGET_SHIFT_TRUNCATION_MASK default_shift_truncation_mask
331 #endif
333 #ifndef TARGET_VALID_POINTER_MODE
334 #define TARGET_VALID_POINTER_MODE default_valid_pointer_mode
335 #endif
337 #ifndef TARGET_SCALAR_MODE_SUPPORTED_P
338 #define TARGET_SCALAR_MODE_SUPPORTED_P default_scalar_mode_supported_p
339 #endif
341 #ifndef TARGET_VECTOR_MODE_SUPPORTED_P
342 #define TARGET_VECTOR_MODE_SUPPORTED_P hook_bool_mode_false
343 #endif
345 #ifndef TARGET_VECTOR_OPAQUE_P
346 #define TARGET_VECTOR_OPAQUE_P hook_bool_tree_false
347 #endif
349 /* In hooks.c. */
350 #define TARGET_CANNOT_MODIFY_JUMPS_P hook_bool_void_false
351 #define TARGET_BRANCH_TARGET_REGISTER_CLASS hook_int_void_no_regs
352 #define TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED hook_bool_bool_false
353 #define TARGET_CANNOT_FORCE_CONST_MEM hook_bool_rtx_false
354 #define TARGET_CANNOT_COPY_INSN_P NULL
355 #define TARGET_COMMUTATIVE_P hook_bool_rtx_commutative_p
356 #define TARGET_DELEGITIMIZE_ADDRESS hook_rtx_rtx_identity
357 #define TARGET_FUNCTION_OK_FOR_SIBCALL hook_bool_tree_tree_false
358 #define TARGET_COMP_TYPE_ATTRIBUTES hook_int_tree_tree_1
359 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES hook_void_tree
360 #define TARGET_INSERT_ATTRIBUTES hook_void_tree_treeptr
361 #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_tree_false
362 #define TARGET_MS_BITFIELD_LAYOUT_P hook_bool_tree_false
363 #define TARGET_ALIGN_ANON_BITFIELD hook_bool_void_false
364 #define TARGET_RTX_COSTS hook_bool_rtx_int_int_intp_false
365 #define TARGET_MANGLE_FUNDAMENTAL_TYPE hook_constcharptr_tree_null
366 #define TARGET_ALLOCATE_INITIAL_VALUE NULL
368 #ifndef TARGET_INIT_LIBFUNCS
369 #define TARGET_INIT_LIBFUNCS hook_void_void
370 #endif
372 #ifndef TARGET_IN_SMALL_DATA_P
373 #define TARGET_IN_SMALL_DATA_P hook_bool_tree_false
374 #endif
376 #ifndef TARGET_ENCODE_SECTION_INFO
377 #define TARGET_ENCODE_SECTION_INFO default_encode_section_info
378 #endif
380 #ifndef TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
381 #define TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN hook_invalid_arg_for_unprototyped_fn
382 #endif
384 #define TARGET_INVALID_CONVERSION hook_constcharptr_tree_tree_null
385 #define TARGET_INVALID_UNARY_OP hook_constcharptr_int_tree_null
386 #define TARGET_INVALID_BINARY_OP hook_constcharptr_int_tree_tree_null
388 #define TARGET_FIXED_CONDITION_CODE_REGS hook_bool_uintp_uintp_false
390 #define TARGET_CC_MODES_COMPATIBLE default_cc_modes_compatible
392 #define TARGET_MACHINE_DEPENDENT_REORG 0
394 #define TARGET_BUILD_BUILTIN_VA_LIST std_build_builtin_va_list
396 #define TARGET_GET_PCH_VALIDITY default_get_pch_validity
397 #define TARGET_PCH_VALID_P default_pch_valid_p
398 #define TARGET_CHECK_PCH_TARGET_FLAGS NULL
400 #define TARGET_DEFAULT_SHORT_ENUMS hook_bool_void_false
402 #define TARGET_BUILTIN_SETJMP_FRAME_VALUE default_builtin_setjmp_frame_value
404 #define TARGET_MD_ASM_CLOBBERS hook_tree_tree_tree_tree_3rd_identity
406 #define TARGET_DWARF_CALLING_CONVENTION hook_int_tree_0
408 #define TARGET_DWARF_HANDLE_FRAME_UNSPEC 0
410 #define TARGET_STDARG_OPTIMIZE_HOOK 0
412 #define TARGET_STACK_PROTECT_GUARD default_stack_protect_guard
413 #define TARGET_STACK_PROTECT_FAIL default_external_stack_protect_fail
415 #define TARGET_ARM_EABI_UNWINDER false
417 #define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false
418 #define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_false
419 #define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_false
421 #define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null
422 #define TARGET_RETURN_IN_MEMORY default_return_in_memory
423 #define TARGET_RETURN_IN_MSB hook_bool_tree_false
425 #define TARGET_EXPAND_BUILTIN_SAVEREGS default_expand_builtin_saveregs
426 #define TARGET_SETUP_INCOMING_VARARGS default_setup_incoming_varargs
427 #define TARGET_STRICT_ARGUMENT_NAMING hook_bool_CUMULATIVE_ARGS_false
428 #define TARGET_PRETEND_OUTGOING_VARARGS_NAMED \
429 default_pretend_outgoing_varargs_named
430 #define TARGET_SPLIT_COMPLEX_ARG NULL
432 #define TARGET_GIMPLIFY_VA_ARG_EXPR std_gimplify_va_arg_expr
433 #define TARGET_PASS_BY_REFERENCE hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
435 #define TARGET_RELAXED_ORDERING false
437 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size_or_pad
438 #define TARGET_CALLEE_COPIES hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
439 #define TARGET_ARG_PARTIAL_BYTES hook_int_CUMULATIVE_ARGS_mode_tree_bool_0
441 #define TARGET_CALLS { \
442 TARGET_PROMOTE_FUNCTION_ARGS, \
443 TARGET_PROMOTE_FUNCTION_RETURN, \
444 TARGET_PROMOTE_PROTOTYPES, \
445 TARGET_STRUCT_VALUE_RTX, \
446 TARGET_RETURN_IN_MEMORY, \
447 TARGET_RETURN_IN_MSB, \
448 TARGET_PASS_BY_REFERENCE, \
449 TARGET_EXPAND_BUILTIN_SAVEREGS, \
450 TARGET_SETUP_INCOMING_VARARGS, \
451 TARGET_STRICT_ARGUMENT_NAMING, \
452 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, \
453 TARGET_SPLIT_COMPLEX_ARG, \
454 TARGET_MUST_PASS_IN_STACK, \
455 TARGET_CALLEE_COPIES, \
456 TARGET_ARG_PARTIAL_BYTES, \
457 TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN \
460 #ifndef TARGET_UNWIND_TABLES_DEFAULT
461 #define TARGET_UNWIND_TABLES_DEFAULT false
462 #endif
464 #ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
465 #define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
466 #endif
468 #ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
469 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
470 #endif
473 /* C++ specific. */
474 #ifndef TARGET_CXX_GUARD_TYPE
475 #define TARGET_CXX_GUARD_TYPE default_cxx_guard_type
476 #endif
478 #ifndef TARGET_CXX_GUARD_MASK_BIT
479 #define TARGET_CXX_GUARD_MASK_BIT hook_bool_void_false
480 #endif
482 #ifndef TARGET_CXX_GET_COOKIE_SIZE
483 #define TARGET_CXX_GET_COOKIE_SIZE default_cxx_get_cookie_size
484 #endif
486 #ifndef TARGET_CXX_COOKIE_HAS_SIZE
487 #define TARGET_CXX_COOKIE_HAS_SIZE hook_bool_void_false
488 #endif
490 #ifndef TARGET_CXX_IMPORT_EXPORT_CLASS
491 #define TARGET_CXX_IMPORT_EXPORT_CLASS NULL
492 #endif
494 #ifndef TARGET_CXX_CDTOR_RETURNS_THIS
495 #define TARGET_CXX_CDTOR_RETURNS_THIS hook_bool_void_false
496 #endif
498 #ifndef TARGET_CXX_KEY_METHOD_MAY_BE_INLINE
499 #define TARGET_CXX_KEY_METHOD_MAY_BE_INLINE hook_bool_void_true
500 #endif
502 #ifndef TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY
503 #define TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY hook_void_tree
504 #endif
506 #ifndef TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT
507 #define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_true
508 #endif
510 #ifndef TARGET_CXX_USE_AEABI_ATEXIT
511 #define TARGET_CXX_USE_AEABI_ATEXIT hook_bool_void_false
512 #endif
514 #define TARGET_CXX \
516 TARGET_CXX_GUARD_TYPE, \
517 TARGET_CXX_GUARD_MASK_BIT, \
518 TARGET_CXX_GET_COOKIE_SIZE, \
519 TARGET_CXX_COOKIE_HAS_SIZE, \
520 TARGET_CXX_IMPORT_EXPORT_CLASS, \
521 TARGET_CXX_CDTOR_RETURNS_THIS, \
522 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE, \
523 TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY, \
524 TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT, \
525 TARGET_CXX_USE_AEABI_ATEXIT, \
528 /* The whole shebang. */
529 #define TARGET_INITIALIZER \
531 TARGET_ASM_OUT, \
532 TARGET_SCHED, \
533 TARGET_VECTORIZE, \
534 TARGET_DEFAULT_TARGET_FLAGS, \
535 TARGET_HANDLE_OPTION, \
536 TARGET_EH_RETURN_FILTER_MODE, \
537 TARGET_MERGE_DECL_ATTRIBUTES, \
538 TARGET_MERGE_TYPE_ATTRIBUTES, \
539 TARGET_ATTRIBUTE_TABLE, \
540 TARGET_COMP_TYPE_ATTRIBUTES, \
541 TARGET_SET_DEFAULT_TYPE_ATTRIBUTES, \
542 TARGET_INSERT_ATTRIBUTES, \
543 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P, \
544 TARGET_MS_BITFIELD_LAYOUT_P, \
545 TARGET_ALIGN_ANON_BITFIELD, \
546 TARGET_INIT_BUILTINS, \
547 TARGET_EXPAND_BUILTIN, \
548 TARGET_RESOLVE_OVERLOADED_BUILTIN, \
549 TARGET_FOLD_BUILTIN, \
550 TARGET_MANGLE_FUNDAMENTAL_TYPE, \
551 TARGET_INIT_LIBFUNCS, \
552 TARGET_SECTION_TYPE_FLAGS, \
553 TARGET_CANNOT_MODIFY_JUMPS_P, \
554 TARGET_BRANCH_TARGET_REGISTER_CLASS, \
555 TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED, \
556 TARGET_CANNOT_FORCE_CONST_MEM, \
557 TARGET_CANNOT_COPY_INSN_P, \
558 TARGET_COMMUTATIVE_P, \
559 TARGET_DELEGITIMIZE_ADDRESS, \
560 TARGET_FUNCTION_OK_FOR_SIBCALL, \
561 TARGET_IN_SMALL_DATA_P, \
562 TARGET_BINDS_LOCAL_P, \
563 TARGET_ENCODE_SECTION_INFO, \
564 TARGET_STRIP_NAME_ENCODING, \
565 TARGET_SHIFT_TRUNCATION_MASK, \
566 TARGET_VALID_POINTER_MODE, \
567 TARGET_SCALAR_MODE_SUPPORTED_P, \
568 TARGET_VECTOR_MODE_SUPPORTED_P, \
569 TARGET_VECTOR_OPAQUE_P, \
570 TARGET_RTX_COSTS, \
571 TARGET_ADDRESS_COST, \
572 TARGET_ALLOCATE_INITIAL_VALUE, \
573 TARGET_DWARF_REGISTER_SPAN, \
574 TARGET_FIXED_CONDITION_CODE_REGS, \
575 TARGET_CC_MODES_COMPATIBLE, \
576 TARGET_MACHINE_DEPENDENT_REORG, \
577 TARGET_BUILD_BUILTIN_VA_LIST, \
578 TARGET_GIMPLIFY_VA_ARG_EXPR, \
579 TARGET_GET_PCH_VALIDITY, \
580 TARGET_PCH_VALID_P, \
581 TARGET_CHECK_PCH_TARGET_FLAGS, \
582 TARGET_DEFAULT_SHORT_ENUMS, \
583 TARGET_BUILTIN_SETJMP_FRAME_VALUE, \
584 TARGET_MD_ASM_CLOBBERS, \
585 TARGET_DWARF_CALLING_CONVENTION, \
586 TARGET_DWARF_HANDLE_FRAME_UNSPEC, \
587 TARGET_STDARG_OPTIMIZE_HOOK, \
588 TARGET_STACK_PROTECT_GUARD, \
589 TARGET_STACK_PROTECT_FAIL, \
590 TARGET_INVALID_WITHIN_DOLOOP, \
591 TARGET_CALLS, \
592 TARGET_INVALID_CONVERSION, \
593 TARGET_INVALID_UNARY_OP, \
594 TARGET_INVALID_BINARY_OP, \
595 TARGET_CXX, \
596 TARGET_UNWIND_TABLES_DEFAULT, \
597 TARGET_HAVE_NAMED_SECTIONS, \
598 TARGET_HAVE_CTORS_DTORS, \
599 TARGET_HAVE_TLS, \
600 TARGET_HAVE_SRODATA_SECTION, \
601 TARGET_TERMINATE_DW2_EH_FRAME_INFO, \
602 TARGET_ASM_FILE_START_APP_OFF, \
603 TARGET_ASM_FILE_START_FILE_DIRECTIVE, \
604 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME, \
605 TARGET_HANDLE_PRAGMA_EXTERN_PREFIX, \
606 TARGET_RELAXED_ORDERING, \
607 TARGET_ARM_EABI_UNWINDER \
610 #include "hooks.h"
611 #include "targhooks.h"