* gcc.dg/vect/pr24225.c: Add cleanup-coverage-files.
[official-gcc.git] / gcc / target-def.h
blob7e8837451f3c2e8249fe0886ebc79d7fbbe062ab
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_HAVE_CTORS_DTORS)
130 # if defined(TARGET_ASM_CONSTRUCTOR) && defined(TARGET_ASM_DESTRUCTOR)
131 # define TARGET_HAVE_CTORS_DTORS true
132 # else
133 # define TARGET_HAVE_CTORS_DTORS false
134 # define TARGET_ASM_CONSTRUCTOR NULL
135 # define TARGET_ASM_DESTRUCTOR NULL
136 # endif
137 #endif
139 #ifdef TARGET_ASM_NAMED_SECTION
140 #define TARGET_HAVE_NAMED_SECTIONS true
141 #else
142 #define TARGET_ASM_NAMED_SECTION default_no_named_section
143 #define TARGET_HAVE_NAMED_SECTIONS false
144 #endif
146 #ifndef TARGET_INVALID_WITHIN_DOLOOP
147 #define TARGET_INVALID_WITHIN_DOLOOP default_invalid_within_doloop
148 #endif
150 #ifndef TARGET_VALID_DLLIMPORT_ATTRIBUTE_P
151 #define TARGET_VALID_DLLIMPORT_ATTRIBUTE_P hook_bool_tree_true
152 #endif
154 #ifndef TARGET_HAVE_TLS
155 #define TARGET_HAVE_TLS false
156 #endif
158 #ifndef TARGET_HAVE_SRODATA_SECTION
159 #define TARGET_HAVE_SRODATA_SECTION false
160 #endif
162 #ifndef TARGET_TERMINATE_DW2_EH_FRAME_INFO
163 #ifdef EH_FRAME_SECTION_NAME
164 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO false
165 #else
166 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO true
167 #endif
168 #endif
170 #define TARGET_DWARF_REGISTER_SPAN hook_rtx_rtx_null
172 #ifndef TARGET_ASM_EXCEPTION_SECTION
173 #define TARGET_ASM_EXCEPTION_SECTION default_exception_section
174 #endif
176 #ifndef TARGET_ASM_EH_FRAME_SECTION
177 #define TARGET_ASM_EH_FRAME_SECTION default_eh_frame_section
178 #endif
180 #ifndef TARGET_ASM_FILE_START
181 #define TARGET_ASM_FILE_START default_file_start
182 #endif
184 #ifndef TARGET_ASM_FILE_END
185 #define TARGET_ASM_FILE_END hook_void_void
186 #endif
188 #ifndef TARGET_ASM_FILE_START_APP_OFF
189 #define TARGET_ASM_FILE_START_APP_OFF false
190 #endif
192 #ifndef TARGET_ASM_FILE_START_FILE_DIRECTIVE
193 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE false
194 #endif
196 #ifndef TARGET_ASM_EXTERNAL_LIBCALL
197 #define TARGET_ASM_EXTERNAL_LIBCALL default_external_libcall
198 #endif
200 #ifndef TARGET_ASM_MARK_DECL_PRESERVED
201 #define TARGET_ASM_MARK_DECL_PRESERVED hook_void_constcharptr
202 #endif
204 #ifndef TARGET_ASM_OUTPUT_DWARF_DTPREL
205 #define TARGET_ASM_OUTPUT_DWARF_DTPREL NULL
206 #endif
208 #define TARGET_ASM_ALIGNED_INT_OP \
209 {TARGET_ASM_ALIGNED_HI_OP, \
210 TARGET_ASM_ALIGNED_SI_OP, \
211 TARGET_ASM_ALIGNED_DI_OP, \
212 TARGET_ASM_ALIGNED_TI_OP}
214 #define TARGET_ASM_UNALIGNED_INT_OP \
215 {TARGET_ASM_UNALIGNED_HI_OP, \
216 TARGET_ASM_UNALIGNED_SI_OP, \
217 TARGET_ASM_UNALIGNED_DI_OP, \
218 TARGET_ASM_UNALIGNED_TI_OP}
220 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN, \
221 TARGET_ASM_CLOSE_PAREN, \
222 TARGET_ASM_BYTE_OP, \
223 TARGET_ASM_ALIGNED_INT_OP, \
224 TARGET_ASM_UNALIGNED_INT_OP, \
225 TARGET_ASM_INTEGER, \
226 TARGET_ASM_GLOBALIZE_LABEL, \
227 TARGET_ASM_EMIT_UNWIND_LABEL, \
228 TARGET_UNWIND_EMIT, \
229 TARGET_ASM_INTERNAL_LABEL, \
230 TARGET_ASM_TTYPE, \
231 TARGET_ASM_ASSEMBLE_VISIBILITY, \
232 TARGET_ASM_FUNCTION_PROLOGUE, \
233 TARGET_ASM_FUNCTION_END_PROLOGUE, \
234 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, \
235 TARGET_ASM_FUNCTION_EPILOGUE, \
236 TARGET_ASM_NAMED_SECTION, \
237 TARGET_ASM_EXCEPTION_SECTION, \
238 TARGET_ASM_EH_FRAME_SECTION, \
239 TARGET_ASM_SELECT_SECTION, \
240 TARGET_ASM_SELECT_RTX_SECTION, \
241 TARGET_ASM_UNIQUE_SECTION, \
242 TARGET_ASM_FUNCTION_RODATA_SECTION, \
243 TARGET_ASM_CONSTRUCTOR, \
244 TARGET_ASM_DESTRUCTOR, \
245 TARGET_ASM_OUTPUT_MI_THUNK, \
246 TARGET_ASM_CAN_OUTPUT_MI_THUNK, \
247 TARGET_ASM_FILE_START, \
248 TARGET_ASM_FILE_END, \
249 TARGET_ASM_EXTERNAL_LIBCALL, \
250 TARGET_ASM_MARK_DECL_PRESERVED, \
251 TARGET_ASM_OUTPUT_DWARF_DTPREL}
253 /* Scheduler hooks. All of these default to null pointers, which
254 haifa-sched.c looks for and handles. */
255 #define TARGET_SCHED_ADJUST_COST 0
256 #define TARGET_SCHED_ADJUST_PRIORITY 0
257 #define TARGET_SCHED_ISSUE_RATE 0
258 #define TARGET_SCHED_VARIABLE_ISSUE 0
259 #define TARGET_SCHED_INIT 0
260 #define TARGET_SCHED_FINISH 0
261 #define TARGET_SCHED_INIT_GLOBAL 0
262 #define TARGET_SCHED_FINISH_GLOBAL 0
263 #define TARGET_SCHED_REORDER 0
264 #define TARGET_SCHED_REORDER2 0
265 #define TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK 0
266 #define TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN 0
267 #define TARGET_SCHED_DFA_PRE_CYCLE_INSN 0
268 #define TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN 0
269 #define TARGET_SCHED_DFA_POST_CYCLE_INSN 0
270 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD 0
271 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD 0
272 #define TARGET_SCHED_DFA_NEW_CYCLE 0
273 #define TARGET_SCHED_IS_COSTLY_DEPENDENCE 0
275 #define TARGET_SCHED \
276 {TARGET_SCHED_ADJUST_COST, \
277 TARGET_SCHED_ADJUST_PRIORITY, \
278 TARGET_SCHED_ISSUE_RATE, \
279 TARGET_SCHED_VARIABLE_ISSUE, \
280 TARGET_SCHED_INIT, \
281 TARGET_SCHED_FINISH, \
282 TARGET_SCHED_INIT_GLOBAL, \
283 TARGET_SCHED_FINISH_GLOBAL, \
284 TARGET_SCHED_REORDER, \
285 TARGET_SCHED_REORDER2, \
286 TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK, \
287 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN, \
288 TARGET_SCHED_DFA_PRE_CYCLE_INSN, \
289 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN, \
290 TARGET_SCHED_DFA_POST_CYCLE_INSN, \
291 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD, \
292 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD, \
293 TARGET_SCHED_DFA_NEW_CYCLE, \
294 TARGET_SCHED_IS_COSTLY_DEPENDENCE}
296 #define TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD 0
298 #define TARGET_VECTORIZE \
299 {TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD}
301 #define TARGET_DEFAULT_TARGET_FLAGS 0
303 #define TARGET_HANDLE_OPTION hook_bool_size_t_constcharptr_int_true
305 /* In except.c */
306 #define TARGET_EH_RETURN_FILTER_MODE default_eh_return_filter_mode
308 /* In tree.c. */
309 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
310 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
311 #define TARGET_ATTRIBUTE_TABLE NULL
313 /* In cse.c. */
314 #define TARGET_ADDRESS_COST default_address_cost
316 /* In builtins.c. */
317 #define TARGET_INIT_BUILTINS hook_void_void
318 #define TARGET_EXPAND_BUILTIN default_expand_builtin
319 #define TARGET_RESOLVE_OVERLOADED_BUILTIN NULL
320 #define TARGET_FOLD_BUILTIN hook_tree_tree_tree_bool_null
322 /* In varasm.c. */
323 #ifndef TARGET_SECTION_TYPE_FLAGS
324 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
325 #endif
327 #ifndef TARGET_STRIP_NAME_ENCODING
328 #define TARGET_STRIP_NAME_ENCODING default_strip_name_encoding
329 #endif
331 #ifndef TARGET_BINDS_LOCAL_P
332 #define TARGET_BINDS_LOCAL_P default_binds_local_p
333 #endif
335 #ifndef TARGET_SHIFT_TRUNCATION_MASK
336 #define TARGET_SHIFT_TRUNCATION_MASK default_shift_truncation_mask
337 #endif
339 #ifndef TARGET_VALID_POINTER_MODE
340 #define TARGET_VALID_POINTER_MODE default_valid_pointer_mode
341 #endif
343 #ifndef TARGET_SCALAR_MODE_SUPPORTED_P
344 #define TARGET_SCALAR_MODE_SUPPORTED_P default_scalar_mode_supported_p
345 #endif
347 #ifndef TARGET_VECTOR_MODE_SUPPORTED_P
348 #define TARGET_VECTOR_MODE_SUPPORTED_P hook_bool_mode_false
349 #endif
351 #ifndef TARGET_VECTOR_OPAQUE_P
352 #define TARGET_VECTOR_OPAQUE_P hook_bool_tree_false
353 #endif
355 /* In hooks.c. */
356 #define TARGET_CANNOT_MODIFY_JUMPS_P hook_bool_void_false
357 #define TARGET_BRANCH_TARGET_REGISTER_CLASS hook_int_void_no_regs
358 #define TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED hook_bool_bool_false
359 #define TARGET_CANNOT_FORCE_CONST_MEM hook_bool_rtx_false
360 #define TARGET_CANNOT_COPY_INSN_P NULL
361 #define TARGET_COMMUTATIVE_P hook_bool_rtx_commutative_p
362 #define TARGET_DELEGITIMIZE_ADDRESS hook_rtx_rtx_identity
363 #define TARGET_FUNCTION_OK_FOR_SIBCALL hook_bool_tree_tree_false
364 #define TARGET_COMP_TYPE_ATTRIBUTES hook_int_tree_tree_1
365 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES hook_void_tree
366 #define TARGET_INSERT_ATTRIBUTES hook_void_tree_treeptr
367 #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_tree_false
368 #define TARGET_MS_BITFIELD_LAYOUT_P hook_bool_tree_false
369 #define TARGET_ALIGN_ANON_BITFIELD hook_bool_void_false
370 #define TARGET_RTX_COSTS hook_bool_rtx_int_int_intp_false
371 #define TARGET_MANGLE_FUNDAMENTAL_TYPE hook_constcharptr_tree_null
372 #define TARGET_ALLOCATE_INITIAL_VALUE NULL
374 #ifndef TARGET_INIT_LIBFUNCS
375 #define TARGET_INIT_LIBFUNCS hook_void_void
376 #endif
378 #ifndef TARGET_IN_SMALL_DATA_P
379 #define TARGET_IN_SMALL_DATA_P hook_bool_tree_false
380 #endif
382 #ifndef TARGET_ENCODE_SECTION_INFO
383 #define TARGET_ENCODE_SECTION_INFO default_encode_section_info
384 #endif
386 #ifndef TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
387 #define TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN hook_invalid_arg_for_unprototyped_fn
388 #endif
390 #define TARGET_INVALID_CONVERSION hook_constcharptr_tree_tree_null
391 #define TARGET_INVALID_UNARY_OP hook_constcharptr_int_tree_null
392 #define TARGET_INVALID_BINARY_OP hook_constcharptr_int_tree_tree_null
394 #define TARGET_FIXED_CONDITION_CODE_REGS hook_bool_uintp_uintp_false
396 #define TARGET_CC_MODES_COMPATIBLE default_cc_modes_compatible
398 #define TARGET_MACHINE_DEPENDENT_REORG 0
400 #define TARGET_BUILD_BUILTIN_VA_LIST std_build_builtin_va_list
402 #define TARGET_GET_PCH_VALIDITY default_get_pch_validity
403 #define TARGET_PCH_VALID_P default_pch_valid_p
404 #define TARGET_CHECK_PCH_TARGET_FLAGS NULL
406 #define TARGET_DEFAULT_SHORT_ENUMS hook_bool_void_false
408 #define TARGET_BUILTIN_SETJMP_FRAME_VALUE default_builtin_setjmp_frame_value
410 #define TARGET_MD_ASM_CLOBBERS hook_tree_tree_tree_tree_3rd_identity
412 #define TARGET_DWARF_CALLING_CONVENTION hook_int_tree_0
414 #define TARGET_DWARF_HANDLE_FRAME_UNSPEC 0
416 #define TARGET_STDARG_OPTIMIZE_HOOK 0
418 #define TARGET_STACK_PROTECT_GUARD default_stack_protect_guard
419 #define TARGET_STACK_PROTECT_FAIL default_external_stack_protect_fail
421 #define TARGET_ARM_EABI_UNWINDER false
423 #define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false
424 #define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_false
425 #define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_false
427 #define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null
428 #define TARGET_RETURN_IN_MEMORY default_return_in_memory
429 #define TARGET_RETURN_IN_MSB hook_bool_tree_false
431 #define TARGET_EXPAND_BUILTIN_SAVEREGS default_expand_builtin_saveregs
432 #define TARGET_SETUP_INCOMING_VARARGS default_setup_incoming_varargs
433 #define TARGET_STRICT_ARGUMENT_NAMING hook_bool_CUMULATIVE_ARGS_false
434 #define TARGET_PRETEND_OUTGOING_VARARGS_NAMED \
435 default_pretend_outgoing_varargs_named
436 #define TARGET_SPLIT_COMPLEX_ARG NULL
438 #define TARGET_GIMPLIFY_VA_ARG_EXPR std_gimplify_va_arg_expr
439 #define TARGET_PASS_BY_REFERENCE hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
441 #define TARGET_RELAXED_ORDERING false
443 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size_or_pad
444 #define TARGET_CALLEE_COPIES hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
445 #define TARGET_ARG_PARTIAL_BYTES hook_int_CUMULATIVE_ARGS_mode_tree_bool_0
447 #define TARGET_FUNCTION_VALUE default_function_value
448 #define TARGET_INTERNAL_ARG_POINTER default_internal_arg_pointer
450 #define TARGET_CALLS { \
451 TARGET_PROMOTE_FUNCTION_ARGS, \
452 TARGET_PROMOTE_FUNCTION_RETURN, \
453 TARGET_PROMOTE_PROTOTYPES, \
454 TARGET_STRUCT_VALUE_RTX, \
455 TARGET_RETURN_IN_MEMORY, \
456 TARGET_RETURN_IN_MSB, \
457 TARGET_PASS_BY_REFERENCE, \
458 TARGET_EXPAND_BUILTIN_SAVEREGS, \
459 TARGET_SETUP_INCOMING_VARARGS, \
460 TARGET_STRICT_ARGUMENT_NAMING, \
461 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, \
462 TARGET_SPLIT_COMPLEX_ARG, \
463 TARGET_MUST_PASS_IN_STACK, \
464 TARGET_CALLEE_COPIES, \
465 TARGET_ARG_PARTIAL_BYTES, \
466 TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN, \
467 TARGET_FUNCTION_VALUE, \
468 TARGET_INTERNAL_ARG_POINTER \
471 #ifndef TARGET_UNWIND_TABLES_DEFAULT
472 #define TARGET_UNWIND_TABLES_DEFAULT false
473 #endif
475 #ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
476 #define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
477 #endif
479 #ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
480 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
481 #endif
484 /* C++ specific. */
485 #ifndef TARGET_CXX_GUARD_TYPE
486 #define TARGET_CXX_GUARD_TYPE default_cxx_guard_type
487 #endif
489 #ifndef TARGET_CXX_GUARD_MASK_BIT
490 #define TARGET_CXX_GUARD_MASK_BIT hook_bool_void_false
491 #endif
493 #ifndef TARGET_CXX_GET_COOKIE_SIZE
494 #define TARGET_CXX_GET_COOKIE_SIZE default_cxx_get_cookie_size
495 #endif
497 #ifndef TARGET_CXX_COOKIE_HAS_SIZE
498 #define TARGET_CXX_COOKIE_HAS_SIZE hook_bool_void_false
499 #endif
501 #ifndef TARGET_CXX_IMPORT_EXPORT_CLASS
502 #define TARGET_CXX_IMPORT_EXPORT_CLASS NULL
503 #endif
505 #ifndef TARGET_CXX_CDTOR_RETURNS_THIS
506 #define TARGET_CXX_CDTOR_RETURNS_THIS hook_bool_void_false
507 #endif
509 #ifndef TARGET_CXX_KEY_METHOD_MAY_BE_INLINE
510 #define TARGET_CXX_KEY_METHOD_MAY_BE_INLINE hook_bool_void_true
511 #endif
513 #ifndef TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY
514 #define TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY hook_void_tree
515 #endif
517 #ifndef TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT
518 #define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_true
519 #endif
521 #ifndef TARGET_CXX_USE_AEABI_ATEXIT
522 #define TARGET_CXX_USE_AEABI_ATEXIT hook_bool_void_false
523 #endif
525 #ifndef TARGET_CXX_ADJUST_CLASS_AT_DEFINITION
526 #define TARGET_CXX_ADJUST_CLASS_AT_DEFINITION hook_void_tree
527 #endif
529 #define TARGET_CXX \
531 TARGET_CXX_GUARD_TYPE, \
532 TARGET_CXX_GUARD_MASK_BIT, \
533 TARGET_CXX_GET_COOKIE_SIZE, \
534 TARGET_CXX_COOKIE_HAS_SIZE, \
535 TARGET_CXX_IMPORT_EXPORT_CLASS, \
536 TARGET_CXX_CDTOR_RETURNS_THIS, \
537 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE, \
538 TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY, \
539 TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT, \
540 TARGET_CXX_USE_AEABI_ATEXIT, \
541 TARGET_CXX_ADJUST_CLASS_AT_DEFINITION \
544 /* The whole shebang. */
545 #define TARGET_INITIALIZER \
547 TARGET_ASM_OUT, \
548 TARGET_SCHED, \
549 TARGET_VECTORIZE, \
550 TARGET_DEFAULT_TARGET_FLAGS, \
551 TARGET_HANDLE_OPTION, \
552 TARGET_EH_RETURN_FILTER_MODE, \
553 TARGET_MERGE_DECL_ATTRIBUTES, \
554 TARGET_MERGE_TYPE_ATTRIBUTES, \
555 TARGET_ATTRIBUTE_TABLE, \
556 TARGET_COMP_TYPE_ATTRIBUTES, \
557 TARGET_SET_DEFAULT_TYPE_ATTRIBUTES, \
558 TARGET_INSERT_ATTRIBUTES, \
559 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P, \
560 TARGET_MS_BITFIELD_LAYOUT_P, \
561 TARGET_ALIGN_ANON_BITFIELD, \
562 TARGET_INIT_BUILTINS, \
563 TARGET_EXPAND_BUILTIN, \
564 TARGET_RESOLVE_OVERLOADED_BUILTIN, \
565 TARGET_FOLD_BUILTIN, \
566 TARGET_MANGLE_FUNDAMENTAL_TYPE, \
567 TARGET_INIT_LIBFUNCS, \
568 TARGET_SECTION_TYPE_FLAGS, \
569 TARGET_CANNOT_MODIFY_JUMPS_P, \
570 TARGET_BRANCH_TARGET_REGISTER_CLASS, \
571 TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED, \
572 TARGET_CANNOT_FORCE_CONST_MEM, \
573 TARGET_CANNOT_COPY_INSN_P, \
574 TARGET_COMMUTATIVE_P, \
575 TARGET_DELEGITIMIZE_ADDRESS, \
576 TARGET_FUNCTION_OK_FOR_SIBCALL, \
577 TARGET_IN_SMALL_DATA_P, \
578 TARGET_BINDS_LOCAL_P, \
579 TARGET_ENCODE_SECTION_INFO, \
580 TARGET_STRIP_NAME_ENCODING, \
581 TARGET_SHIFT_TRUNCATION_MASK, \
582 TARGET_VALID_POINTER_MODE, \
583 TARGET_SCALAR_MODE_SUPPORTED_P, \
584 TARGET_VECTOR_MODE_SUPPORTED_P, \
585 TARGET_VECTOR_OPAQUE_P, \
586 TARGET_RTX_COSTS, \
587 TARGET_ADDRESS_COST, \
588 TARGET_ALLOCATE_INITIAL_VALUE, \
589 TARGET_DWARF_REGISTER_SPAN, \
590 TARGET_FIXED_CONDITION_CODE_REGS, \
591 TARGET_CC_MODES_COMPATIBLE, \
592 TARGET_MACHINE_DEPENDENT_REORG, \
593 TARGET_BUILD_BUILTIN_VA_LIST, \
594 TARGET_GIMPLIFY_VA_ARG_EXPR, \
595 TARGET_GET_PCH_VALIDITY, \
596 TARGET_PCH_VALID_P, \
597 TARGET_CHECK_PCH_TARGET_FLAGS, \
598 TARGET_DEFAULT_SHORT_ENUMS, \
599 TARGET_BUILTIN_SETJMP_FRAME_VALUE, \
600 TARGET_MD_ASM_CLOBBERS, \
601 TARGET_DWARF_CALLING_CONVENTION, \
602 TARGET_DWARF_HANDLE_FRAME_UNSPEC, \
603 TARGET_STDARG_OPTIMIZE_HOOK, \
604 TARGET_STACK_PROTECT_GUARD, \
605 TARGET_STACK_PROTECT_FAIL, \
606 TARGET_INVALID_WITHIN_DOLOOP, \
607 TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, \
608 TARGET_CALLS, \
609 TARGET_INVALID_CONVERSION, \
610 TARGET_INVALID_UNARY_OP, \
611 TARGET_INVALID_BINARY_OP, \
612 TARGET_CXX, \
613 TARGET_UNWIND_TABLES_DEFAULT, \
614 TARGET_HAVE_NAMED_SECTIONS, \
615 TARGET_HAVE_CTORS_DTORS, \
616 TARGET_HAVE_TLS, \
617 TARGET_HAVE_SRODATA_SECTION, \
618 TARGET_TERMINATE_DW2_EH_FRAME_INFO, \
619 TARGET_ASM_FILE_START_APP_OFF, \
620 TARGET_ASM_FILE_START_FILE_DIRECTIVE, \
621 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME, \
622 TARGET_HANDLE_PRAGMA_EXTERN_PREFIX, \
623 TARGET_RELAXED_ORDERING, \
624 TARGET_ARM_EABI_UNWINDER \
627 #include "hooks.h"
628 #include "targhooks.h"