OSDN Git Service

libcpp/ChangeLog:
[pf3gnuchains/gcc-fork.git] / gcc / target-def.h
1 /* Default initializers for a generic GCC target.
2    Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
3    Free Software Foundation, Inc.
4
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 2, or (at your option) any
8 later version.
9
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.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
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!  */
22
23 /* See target.h for a description of what this file contains and how to
24    use it.
25
26    We want to have non-NULL default definitions of all hook functions,
27    even if they do nothing.  */
28
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.  */
32
33 /* Assembler output.  */
34 #ifndef TARGET_ASM_OPEN_PAREN
35 #define TARGET_ASM_OPEN_PAREN "("
36 #endif
37 #ifndef TARGET_ASM_CLOSE_PAREN
38 #define TARGET_ASM_CLOSE_PAREN ")"
39 #endif
40
41 #define TARGET_ASM_BYTE_OP "\t.byte\t"
42
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
47
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
54 #else
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 */
60
61 #define TARGET_ASM_INTEGER default_assemble_integer
62
63 #ifndef TARGET_ASM_GLOBALIZE_LABEL
64 #define TARGET_ASM_GLOBALIZE_LABEL default_globalize_label
65 #endif
66
67 #ifndef TARGET_ASM_GLOBALIZE_DECL_NAME
68 #define TARGET_ASM_GLOBALIZE_DECL_NAME default_globalize_decl_name
69 #endif
70
71 #ifndef TARGET_ASM_EMIT_UNWIND_LABEL
72 #define TARGET_ASM_EMIT_UNWIND_LABEL default_emit_unwind_label
73 #endif
74
75 #ifndef TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL
76 #define TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL default_emit_except_table_label
77 #endif
78
79 #ifndef TARGET_UNWIND_EMIT
80 #define TARGET_UNWIND_EMIT default_unwind_emit
81 #endif
82
83 #ifndef TARGET_ASM_INTERNAL_LABEL
84 #define TARGET_ASM_INTERNAL_LABEL default_internal_label
85 #endif
86
87 #ifndef TARGET_ARM_TTYPE
88 #define TARGET_ASM_TTYPE hook_bool_rtx_false
89 #endif
90
91 #ifndef TARGET_ASM_ASSEMBLE_VISIBILITY
92 #define TARGET_ASM_ASSEMBLE_VISIBILITY default_assemble_visibility
93 #endif
94
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
99
100 #ifndef TARGET_ASM_RELOC_RW_MASK
101 #define TARGET_ASM_RELOC_RW_MASK default_reloc_rw_mask
102 #endif
103
104 #ifndef TARGET_ASM_SELECT_SECTION
105 #define TARGET_ASM_SELECT_SECTION default_select_section
106 #endif
107
108 #ifndef TARGET_ASM_UNIQUE_SECTION
109 #define TARGET_ASM_UNIQUE_SECTION default_unique_section
110 #endif
111
112 #ifndef TARGET_ASM_FUNCTION_RODATA_SECTION
113 #define TARGET_ASM_FUNCTION_RODATA_SECTION default_function_rodata_section
114 #endif
115
116 #ifndef TARGET_ASM_SELECT_RTX_SECTION
117 #define TARGET_ASM_SELECT_RTX_SECTION default_select_rtx_section
118 #endif
119
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
123 # else
124 #  ifdef TARGET_ASM_NAMED_SECTION
125 #   define TARGET_ASM_CONSTRUCTOR default_named_section_asm_out_constructor
126 #  else
127 #   define TARGET_ASM_CONSTRUCTOR default_stabs_asm_out_constructor
128 #  endif
129 # endif
130 #endif
131
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
135 # else
136 #  ifdef TARGET_ASM_NAMED_SECTION
137 #   define TARGET_ASM_DESTRUCTOR default_named_section_asm_out_destructor
138 #  else
139 #   define TARGET_ASM_DESTRUCTOR default_stabs_asm_out_destructor
140 #  endif
141 # endif
142 #endif
143
144 #define TARGET_ASM_OUTPUT_MI_THUNK NULL
145 #define TARGET_ASM_CAN_OUTPUT_MI_THUNK hook_bool_tree_hwi_hwi_tree_false
146
147 #if !defined(TARGET_HAVE_CTORS_DTORS)
148 # if defined(TARGET_ASM_CONSTRUCTOR) && defined(TARGET_ASM_DESTRUCTOR)
149 # define TARGET_HAVE_CTORS_DTORS true
150 # else
151 # define TARGET_HAVE_CTORS_DTORS false
152 # define TARGET_ASM_CONSTRUCTOR NULL
153 # define TARGET_ASM_DESTRUCTOR NULL
154 # endif
155 #endif
156
157 #ifndef TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
158 #define TARGET_HAVE_SWITCHABLE_BSS_SECTIONS false
159 #endif
160
161 #ifndef TARGET_ASM_INIT_SECTIONS
162 #define TARGET_ASM_INIT_SECTIONS hook_void_void
163 #endif
164
165 #ifdef TARGET_ASM_NAMED_SECTION
166 #define TARGET_HAVE_NAMED_SECTIONS true
167 #else
168 #define TARGET_ASM_NAMED_SECTION default_no_named_section
169 #define TARGET_HAVE_NAMED_SECTIONS false
170 #endif
171
172 #ifndef TARGET_INVALID_WITHIN_DOLOOP
173 #define TARGET_INVALID_WITHIN_DOLOOP default_invalid_within_doloop
174 #endif
175
176 #ifndef TARGET_VALID_DLLIMPORT_ATTRIBUTE_P
177 #define TARGET_VALID_DLLIMPORT_ATTRIBUTE_P hook_bool_tree_true
178 #endif
179
180 #ifndef TARGET_HAVE_TLS
181 #define TARGET_HAVE_TLS false
182 #endif
183
184 #ifndef TARGET_HAVE_SRODATA_SECTION
185 #define TARGET_HAVE_SRODATA_SECTION false
186 #endif
187
188 #ifndef TARGET_TERMINATE_DW2_EH_FRAME_INFO
189 #ifdef EH_FRAME_SECTION_NAME
190 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO false
191 #else
192 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO true
193 #endif
194 #endif
195
196 #define TARGET_DWARF_REGISTER_SPAN hook_rtx_rtx_null
197 #define TARGET_INIT_DWARF_REG_SIZES_EXTRA hook_void_tree
198
199 #ifndef TARGET_ASM_FILE_START
200 #define TARGET_ASM_FILE_START default_file_start
201 #endif
202
203 #ifndef TARGET_ASM_FILE_END
204 #define TARGET_ASM_FILE_END hook_void_void
205 #endif
206
207 #ifndef TARGET_EXTRA_LIVE_ON_ENTRY
208 #define TARGET_EXTRA_LIVE_ON_ENTRY hook_void_bitmap
209 #endif
210
211 #ifndef TARGET_ASM_FILE_START_APP_OFF
212 #define TARGET_ASM_FILE_START_APP_OFF false
213 #endif
214
215 #ifndef TARGET_ASM_FILE_START_FILE_DIRECTIVE
216 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE false
217 #endif
218
219 #ifndef TARGET_ASM_EXTERNAL_LIBCALL
220 #define TARGET_ASM_EXTERNAL_LIBCALL default_external_libcall
221 #endif
222
223 #ifndef TARGET_ASM_MARK_DECL_PRESERVED
224 #define TARGET_ASM_MARK_DECL_PRESERVED hook_void_constcharptr
225 #endif
226
227 #ifndef TARGET_ASM_OUTPUT_ANCHOR
228 #ifdef ASM_OUTPUT_DEF
229 #define TARGET_ASM_OUTPUT_ANCHOR default_asm_output_anchor
230 #else
231 #define TARGET_ASM_OUTPUT_ANCHOR NULL
232 #endif
233 #endif
234
235 #ifndef TARGET_ASM_OUTPUT_DWARF_DTPREL
236 #define TARGET_ASM_OUTPUT_DWARF_DTPREL NULL
237 #endif
238
239 #ifndef TARGET_ASM_RECORD_GCC_SWITCHES
240 #define TARGET_ASM_RECORD_GCC_SWITCHES NULL
241 #endif
242 #ifndef TARGET_ASM_RECORD_GCC_SWITCHES_SECTION
243 #define TARGET_ASM_RECORD_GCC_SWITCHES_SECTION ".GCC.command.line"
244 #endif
245
246 #define TARGET_ASM_ALIGNED_INT_OP                               \
247                        {TARGET_ASM_ALIGNED_HI_OP,               \
248                         TARGET_ASM_ALIGNED_SI_OP,               \
249                         TARGET_ASM_ALIGNED_DI_OP,               \
250                         TARGET_ASM_ALIGNED_TI_OP}
251
252 #define TARGET_ASM_UNALIGNED_INT_OP                             \
253                        {TARGET_ASM_UNALIGNED_HI_OP,             \
254                         TARGET_ASM_UNALIGNED_SI_OP,             \
255                         TARGET_ASM_UNALIGNED_DI_OP,             \
256                         TARGET_ASM_UNALIGNED_TI_OP}
257
258 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN,                  \
259                         TARGET_ASM_CLOSE_PAREN,                 \
260                         TARGET_ASM_BYTE_OP,                     \
261                         TARGET_ASM_ALIGNED_INT_OP,              \
262                         TARGET_ASM_UNALIGNED_INT_OP,            \
263                         TARGET_ASM_INTEGER,                     \
264                         TARGET_ASM_GLOBALIZE_LABEL,             \
265                         TARGET_ASM_GLOBALIZE_DECL_NAME,         \
266                         TARGET_ASM_EMIT_UNWIND_LABEL,           \
267                         TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL,     \
268                         TARGET_UNWIND_EMIT,                     \
269                         TARGET_ASM_INTERNAL_LABEL,              \
270                         TARGET_ASM_TTYPE,                       \
271                         TARGET_ASM_ASSEMBLE_VISIBILITY,         \
272                         TARGET_ASM_FUNCTION_PROLOGUE,           \
273                         TARGET_ASM_FUNCTION_END_PROLOGUE,       \
274                         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE,     \
275                         TARGET_ASM_FUNCTION_EPILOGUE,           \
276                         TARGET_ASM_INIT_SECTIONS,               \
277                         TARGET_ASM_NAMED_SECTION,               \
278                         TARGET_ASM_RELOC_RW_MASK,               \
279                         TARGET_ASM_SELECT_SECTION,              \
280                         TARGET_ASM_SELECT_RTX_SECTION,          \
281                         TARGET_ASM_UNIQUE_SECTION,              \
282                         TARGET_ASM_FUNCTION_RODATA_SECTION,     \
283                         TARGET_ASM_CONSTRUCTOR,                 \
284                         TARGET_ASM_DESTRUCTOR,                  \
285                         TARGET_ASM_OUTPUT_MI_THUNK,             \
286                         TARGET_ASM_CAN_OUTPUT_MI_THUNK,         \
287                         TARGET_ASM_FILE_START,                  \
288                         TARGET_ASM_FILE_END,                    \
289                         TARGET_ASM_EXTERNAL_LIBCALL,            \
290                         TARGET_ASM_MARK_DECL_PRESERVED,         \
291                         TARGET_ASM_RECORD_GCC_SWITCHES,         \
292                         TARGET_ASM_RECORD_GCC_SWITCHES_SECTION, \
293                         TARGET_ASM_OUTPUT_ANCHOR,               \
294                         TARGET_ASM_OUTPUT_DWARF_DTPREL}
295
296 /* Scheduler hooks.  All of these default to null pointers, which
297    haifa-sched.c looks for and handles.  */
298 #define TARGET_SCHED_ADJUST_COST 0
299 #define TARGET_SCHED_ADJUST_PRIORITY 0
300 #define TARGET_SCHED_ISSUE_RATE 0
301 #define TARGET_SCHED_VARIABLE_ISSUE 0
302 #define TARGET_SCHED_INIT 0
303 #define TARGET_SCHED_FINISH 0
304 #define TARGET_SCHED_INIT_GLOBAL 0
305 #define TARGET_SCHED_FINISH_GLOBAL 0
306 #define TARGET_SCHED_REORDER 0
307 #define TARGET_SCHED_REORDER2 0
308 #define TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK 0
309 #define TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN 0
310 #define TARGET_SCHED_DFA_PRE_CYCLE_INSN 0
311 #define TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN 0
312 #define TARGET_SCHED_DFA_POST_CYCLE_INSN 0
313 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD 0
314 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD 0
315 #define TARGET_SCHED_DFA_NEW_CYCLE 0
316 #define TARGET_SCHED_IS_COSTLY_DEPENDENCE 0
317 #define TARGET_SCHED_H_I_D_EXTENDED 0
318 #define TARGET_SCHED_SPECULATE_INSN 0
319 #define TARGET_SCHED_NEEDS_BLOCK_P 0
320 #define TARGET_SCHED_GEN_CHECK 0
321 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC 0
322 #define TARGET_SCHED_SET_SCHED_FLAGS 0
323
324
325 #define TARGET_SCHED                                            \
326   {TARGET_SCHED_ADJUST_COST,                                    \
327    TARGET_SCHED_ADJUST_PRIORITY,                                \
328    TARGET_SCHED_ISSUE_RATE,                                     \
329    TARGET_SCHED_VARIABLE_ISSUE,                                 \
330    TARGET_SCHED_INIT,                                           \
331    TARGET_SCHED_FINISH,                                         \
332    TARGET_SCHED_INIT_GLOBAL,                                    \
333    TARGET_SCHED_FINISH_GLOBAL,                                  \
334    TARGET_SCHED_REORDER,                                        \
335    TARGET_SCHED_REORDER2,                                       \
336    TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK,                   \
337    TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,                        \
338    TARGET_SCHED_DFA_PRE_CYCLE_INSN,                             \
339    TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,                       \
340    TARGET_SCHED_DFA_POST_CYCLE_INSN,                            \
341    TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,            \
342    TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,      \
343    TARGET_SCHED_DFA_NEW_CYCLE,                                  \
344    TARGET_SCHED_IS_COSTLY_DEPENDENCE,                           \
345    TARGET_SCHED_H_I_D_EXTENDED,                                 \
346    TARGET_SCHED_SPECULATE_INSN,                                 \
347    TARGET_SCHED_NEEDS_BLOCK_P,                                  \
348    TARGET_SCHED_GEN_CHECK,                                      \
349    TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC, \
350    TARGET_SCHED_SET_SCHED_FLAGS}
351
352 #define TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD 0
353 #define TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION \
354   default_builtin_vectorized_function
355 #define TARGET_VECTORIZE_BUILTIN_CONVERSION \
356   default_builtin_vectorized_conversion
357 #define TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN 0
358 #define TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD 0
359
360 #define TARGET_VECTORIZE                                                \
361   {                                                                     \
362     TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD,                             \
363     TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION,                       \
364     TARGET_VECTORIZE_BUILTIN_CONVERSION,                                \
365     TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN,                            \
366     TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD                              \
367   }
368
369 #define TARGET_DEFAULT_TARGET_FLAGS 0
370
371 #define TARGET_HANDLE_OPTION hook_bool_size_t_constcharptr_int_true
372
373 /* In except.c */
374 #define TARGET_EH_RETURN_FILTER_MODE  default_eh_return_filter_mode
375
376 /* In tree.c.  */
377 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
378 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
379 #define TARGET_ATTRIBUTE_TABLE NULL
380
381 /* In cse.c.  */
382 #define TARGET_ADDRESS_COST default_address_cost
383
384 /* In builtins.c.  */
385 #define TARGET_INIT_BUILTINS hook_void_void
386 #define TARGET_EXPAND_BUILTIN default_expand_builtin
387 #define TARGET_RESOLVE_OVERLOADED_BUILTIN NULL
388 #define TARGET_FOLD_BUILTIN hook_tree_tree_tree_bool_null
389
390 /* In tree-ssa-math-opts.c  */
391 #define TARGET_BUILTIN_RECIPROCAL default_builtin_reciprocal
392
393 /* In varasm.c.  */
394 #ifndef TARGET_SECTION_TYPE_FLAGS
395 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
396 #endif
397
398 #ifndef TARGET_STRIP_NAME_ENCODING
399 #define TARGET_STRIP_NAME_ENCODING default_strip_name_encoding
400 #endif
401
402 #ifndef TARGET_BINDS_LOCAL_P
403 #define TARGET_BINDS_LOCAL_P default_binds_local_p
404 #endif
405
406 #ifndef TARGET_SHIFT_TRUNCATION_MASK
407 #define TARGET_SHIFT_TRUNCATION_MASK default_shift_truncation_mask
408 #endif
409
410 #ifndef TARGET_MIN_DIVISIONS_FOR_RECIP_MUL
411 #define TARGET_MIN_DIVISIONS_FOR_RECIP_MUL default_min_divisions_for_recip_mul
412 #endif
413
414 #ifndef TARGET_MODE_REP_EXTENDED
415 #define TARGET_MODE_REP_EXTENDED default_mode_rep_extended
416 #endif
417
418 #ifndef TARGET_VALID_POINTER_MODE
419 #define TARGET_VALID_POINTER_MODE default_valid_pointer_mode
420 #endif
421
422 #ifndef TARGET_SCALAR_MODE_SUPPORTED_P
423 #define TARGET_SCALAR_MODE_SUPPORTED_P default_scalar_mode_supported_p
424 #endif
425
426 #ifndef TARGET_DECIMAL_FLOAT_SUPPORTED_P
427 #define TARGET_DECIMAL_FLOAT_SUPPORTED_P default_decimal_float_supported_p
428 #endif
429
430 #ifndef TARGET_VECTOR_MODE_SUPPORTED_P
431 #define TARGET_VECTOR_MODE_SUPPORTED_P hook_bool_mode_false
432 #endif
433
434 #ifndef TARGET_VECTOR_OPAQUE_P
435 #define TARGET_VECTOR_OPAQUE_P hook_bool_tree_false
436 #endif
437
438 /* In hooks.c.  */
439 #define TARGET_CANNOT_MODIFY_JUMPS_P hook_bool_void_false
440 #define TARGET_BRANCH_TARGET_REGISTER_CLASS hook_int_void_no_regs
441 #define TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED hook_bool_bool_false
442 #define TARGET_CANNOT_FORCE_CONST_MEM hook_bool_rtx_false
443 #define TARGET_CANNOT_COPY_INSN_P NULL
444 #define TARGET_COMMUTATIVE_P hook_bool_rtx_commutative_p
445 #define TARGET_DELEGITIMIZE_ADDRESS hook_rtx_rtx_identity
446 #define TARGET_USE_BLOCKS_FOR_CONSTANT_P hook_bool_mode_rtx_false
447 #define TARGET_MIN_ANCHOR_OFFSET 0
448 #define TARGET_MAX_ANCHOR_OFFSET 0
449 #define TARGET_USE_ANCHORS_FOR_SYMBOL_P default_use_anchors_for_symbol_p
450 #define TARGET_FUNCTION_OK_FOR_SIBCALL hook_bool_tree_tree_false
451 #define TARGET_COMP_TYPE_ATTRIBUTES hook_int_tree_tree_1
452 #ifndef TARGET_SET_DEFAULT_TYPE_ATTRIBUTES
453 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES hook_void_tree
454 #endif
455 #define TARGET_INSERT_ATTRIBUTES hook_void_tree_treeptr
456 #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_tree_false
457 #define TARGET_MS_BITFIELD_LAYOUT_P hook_bool_tree_false
458 #define TARGET_ALIGN_ANON_BITFIELD hook_bool_void_false
459 #define TARGET_NARROW_VOLATILE_BITFIELD hook_bool_void_false
460 #define TARGET_RTX_COSTS hook_bool_rtx_int_int_intp_false
461 #define TARGET_MANGLE_FUNDAMENTAL_TYPE hook_constcharptr_tree_null
462 #define TARGET_ALLOCATE_INITIAL_VALUE NULL
463
464 #ifndef TARGET_INIT_LIBFUNCS
465 #define TARGET_INIT_LIBFUNCS hook_void_void
466 #endif
467
468 #ifndef TARGET_IN_SMALL_DATA_P
469 #define TARGET_IN_SMALL_DATA_P hook_bool_tree_false
470 #endif
471
472 #ifndef TARGET_MANGLE_DECL_ASSEMBLER_NAME
473 #define TARGET_MANGLE_DECL_ASSEMBLER_NAME default_mangle_decl_assembler_name
474 #endif
475
476 #ifndef TARGET_ENCODE_SECTION_INFO
477 #define TARGET_ENCODE_SECTION_INFO default_encode_section_info
478 #endif
479
480 #ifndef TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
481 #define TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN hook_invalid_arg_for_unprototyped_fn
482 #endif
483
484 #define TARGET_INVALID_CONVERSION hook_constcharptr_tree_tree_null
485 #define TARGET_INVALID_UNARY_OP hook_constcharptr_int_tree_null
486 #define TARGET_INVALID_BINARY_OP hook_constcharptr_int_tree_tree_null
487
488 #define TARGET_FIXED_CONDITION_CODE_REGS hook_bool_uintp_uintp_false
489
490 #define TARGET_CC_MODES_COMPATIBLE default_cc_modes_compatible
491
492 #define TARGET_MACHINE_DEPENDENT_REORG 0
493
494 #define TARGET_BUILD_BUILTIN_VA_LIST std_build_builtin_va_list
495
496 #define TARGET_GET_PCH_VALIDITY default_get_pch_validity
497 #define TARGET_PCH_VALID_P default_pch_valid_p
498 #define TARGET_CHECK_PCH_TARGET_FLAGS NULL
499
500 #define TARGET_DEFAULT_SHORT_ENUMS hook_bool_void_false
501
502 #define TARGET_BUILTIN_SETJMP_FRAME_VALUE default_builtin_setjmp_frame_value
503
504 #define TARGET_MD_ASM_CLOBBERS hook_tree_tree_tree_tree_3rd_identity
505
506 #define TARGET_DWARF_CALLING_CONVENTION hook_int_tree_0
507
508 #define TARGET_DWARF_HANDLE_FRAME_UNSPEC 0
509
510 #define TARGET_STDARG_OPTIMIZE_HOOK 0
511
512 #define TARGET_STACK_PROTECT_GUARD  default_stack_protect_guard
513 #define TARGET_STACK_PROTECT_FAIL   default_external_stack_protect_fail
514
515 #define TARGET_ARM_EABI_UNWINDER false
516
517 #define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false
518 #define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_false
519 #define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_false
520
521 #define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null
522 #define TARGET_RETURN_IN_MEMORY default_return_in_memory
523 #define TARGET_RETURN_IN_MSB hook_bool_tree_false
524
525 #define TARGET_EXPAND_BUILTIN_SAVEREGS default_expand_builtin_saveregs
526 #define TARGET_SETUP_INCOMING_VARARGS default_setup_incoming_varargs
527 #define TARGET_STRICT_ARGUMENT_NAMING hook_bool_CUMULATIVE_ARGS_false
528 #define TARGET_PRETEND_OUTGOING_VARARGS_NAMED \
529   default_pretend_outgoing_varargs_named
530 #define TARGET_SPLIT_COMPLEX_ARG NULL
531
532 #define TARGET_GIMPLIFY_VA_ARG_EXPR std_gimplify_va_arg_expr
533 #define TARGET_PASS_BY_REFERENCE hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
534
535 #define TARGET_RELAXED_ORDERING false
536
537 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size_or_pad
538 #define TARGET_CALLEE_COPIES hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
539 #define TARGET_ARG_PARTIAL_BYTES hook_int_CUMULATIVE_ARGS_mode_tree_bool_0
540
541 #define TARGET_FUNCTION_VALUE default_function_value
542 #define TARGET_INTERNAL_ARG_POINTER default_internal_arg_pointer
543
544 #define TARGET_CALLS {                                          \
545    TARGET_PROMOTE_FUNCTION_ARGS,                                \
546    TARGET_PROMOTE_FUNCTION_RETURN,                              \
547    TARGET_PROMOTE_PROTOTYPES,                                   \
548    TARGET_STRUCT_VALUE_RTX,                                     \
549    TARGET_RETURN_IN_MEMORY,                                     \
550    TARGET_RETURN_IN_MSB,                                        \
551    TARGET_PASS_BY_REFERENCE,                                    \
552    TARGET_EXPAND_BUILTIN_SAVEREGS,                              \
553    TARGET_SETUP_INCOMING_VARARGS,                               \
554    TARGET_STRICT_ARGUMENT_NAMING,                               \
555    TARGET_PRETEND_OUTGOING_VARARGS_NAMED,                       \
556    TARGET_SPLIT_COMPLEX_ARG,                                    \
557    TARGET_MUST_PASS_IN_STACK,                                   \
558    TARGET_CALLEE_COPIES,                                        \
559    TARGET_ARG_PARTIAL_BYTES,                                    \
560    TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN,                      \
561    TARGET_FUNCTION_VALUE,                                       \
562    TARGET_INTERNAL_ARG_POINTER                                  \
563    }
564
565 #ifndef TARGET_UNWIND_TABLES_DEFAULT
566 #define TARGET_UNWIND_TABLES_DEFAULT false
567 #endif
568
569 #ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
570 #define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
571 #endif
572
573 #ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
574 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
575 #endif
576
577 #ifndef TARGET_SECONDARY_RELOAD
578 #define TARGET_SECONDARY_RELOAD default_secondary_reload
579 #endif
580
581 /* C specific.  */
582 #ifndef TARGET_C_MODE_FOR_SUFFIX
583 #define TARGET_C_MODE_FOR_SUFFIX default_mode_for_suffix
584 #endif
585
586 #define TARGET_C                                \
587   {                                             \
588     TARGET_C_MODE_FOR_SUFFIX                    \
589   }
590
591 /* C++ specific.  */
592 #ifndef TARGET_CXX_GUARD_TYPE
593 #define TARGET_CXX_GUARD_TYPE default_cxx_guard_type
594 #endif
595
596 #ifndef TARGET_CXX_GUARD_MASK_BIT
597 #define TARGET_CXX_GUARD_MASK_BIT hook_bool_void_false
598 #endif
599
600 #ifndef TARGET_CXX_GET_COOKIE_SIZE
601 #define TARGET_CXX_GET_COOKIE_SIZE default_cxx_get_cookie_size
602 #endif
603
604 #ifndef TARGET_CXX_COOKIE_HAS_SIZE
605 #define TARGET_CXX_COOKIE_HAS_SIZE hook_bool_void_false
606 #endif
607
608 #ifndef TARGET_CXX_IMPORT_EXPORT_CLASS
609 #define TARGET_CXX_IMPORT_EXPORT_CLASS NULL
610 #endif
611
612 #ifndef TARGET_CXX_CDTOR_RETURNS_THIS
613 #define TARGET_CXX_CDTOR_RETURNS_THIS hook_bool_void_false
614 #endif
615
616 #ifndef TARGET_CXX_KEY_METHOD_MAY_BE_INLINE
617 #define TARGET_CXX_KEY_METHOD_MAY_BE_INLINE hook_bool_void_true
618 #endif
619
620 #ifndef TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY
621 #define TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY hook_void_tree
622 #endif
623
624 #ifndef TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT
625 #define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_true
626 #endif
627
628 #ifndef TARGET_CXX_LIBRARY_RTTI_COMDAT
629 #define TARGET_CXX_LIBRARY_RTTI_COMDAT hook_bool_void_true
630 #endif
631
632 #ifndef TARGET_CXX_USE_AEABI_ATEXIT
633 #define TARGET_CXX_USE_AEABI_ATEXIT hook_bool_void_false
634 #endif
635
636 #ifndef TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT
637 #define TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT hook_bool_void_false
638 #endif
639
640 #ifndef TARGET_CXX_ADJUST_CLASS_AT_DEFINITION
641 #define TARGET_CXX_ADJUST_CLASS_AT_DEFINITION hook_void_tree
642 #endif
643
644 #define TARGET_CXX                              \
645   {                                             \
646     TARGET_CXX_GUARD_TYPE,                      \
647     TARGET_CXX_GUARD_MASK_BIT,                  \
648     TARGET_CXX_GET_COOKIE_SIZE,                 \
649     TARGET_CXX_COOKIE_HAS_SIZE,                 \
650     TARGET_CXX_IMPORT_EXPORT_CLASS,             \
651     TARGET_CXX_CDTOR_RETURNS_THIS,              \
652     TARGET_CXX_KEY_METHOD_MAY_BE_INLINE,        \
653     TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY, \
654     TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT,        \
655     TARGET_CXX_LIBRARY_RTTI_COMDAT,             \
656     TARGET_CXX_USE_AEABI_ATEXIT,                \
657     TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT,       \
658     TARGET_CXX_ADJUST_CLASS_AT_DEFINITION       \
659   }
660
661 /* The whole shebang.  */
662 #define TARGET_INITIALIZER                      \
663 {                                               \
664   TARGET_ASM_OUT,                               \
665   TARGET_SCHED,                                 \
666   TARGET_VECTORIZE,                             \
667   TARGET_DEFAULT_TARGET_FLAGS,                  \
668   TARGET_HANDLE_OPTION,                         \
669   TARGET_EH_RETURN_FILTER_MODE,                 \
670   TARGET_MERGE_DECL_ATTRIBUTES,                 \
671   TARGET_MERGE_TYPE_ATTRIBUTES,                 \
672   TARGET_ATTRIBUTE_TABLE,                       \
673   TARGET_COMP_TYPE_ATTRIBUTES,                  \
674   TARGET_SET_DEFAULT_TYPE_ATTRIBUTES,           \
675   TARGET_INSERT_ATTRIBUTES,                     \
676   TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,        \
677   TARGET_MS_BITFIELD_LAYOUT_P,                  \
678   TARGET_DECIMAL_FLOAT_SUPPORTED_P,             \
679   TARGET_ALIGN_ANON_BITFIELD,                   \
680   TARGET_NARROW_VOLATILE_BITFIELD,              \
681   TARGET_INIT_BUILTINS,                         \
682   TARGET_EXPAND_BUILTIN,                        \
683   TARGET_RESOLVE_OVERLOADED_BUILTIN,            \
684   TARGET_FOLD_BUILTIN,                          \
685   TARGET_BUILTIN_RECIPROCAL,                    \
686   TARGET_MANGLE_FUNDAMENTAL_TYPE,               \
687   TARGET_INIT_LIBFUNCS,                         \
688   TARGET_SECTION_TYPE_FLAGS,                    \
689   TARGET_CANNOT_MODIFY_JUMPS_P,                 \
690   TARGET_BRANCH_TARGET_REGISTER_CLASS,          \
691   TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED,   \
692   TARGET_CANNOT_FORCE_CONST_MEM,                \
693   TARGET_CANNOT_COPY_INSN_P,                    \
694   TARGET_COMMUTATIVE_P,                         \
695   TARGET_DELEGITIMIZE_ADDRESS,                  \
696   TARGET_USE_BLOCKS_FOR_CONSTANT_P,             \
697   TARGET_MIN_ANCHOR_OFFSET,                     \
698   TARGET_MAX_ANCHOR_OFFSET,                     \
699   TARGET_USE_ANCHORS_FOR_SYMBOL_P,              \
700   TARGET_FUNCTION_OK_FOR_SIBCALL,               \
701   TARGET_IN_SMALL_DATA_P,                       \
702   TARGET_BINDS_LOCAL_P,                         \
703   TARGET_MANGLE_DECL_ASSEMBLER_NAME,            \
704   TARGET_ENCODE_SECTION_INFO,                   \
705   TARGET_STRIP_NAME_ENCODING,                   \
706   TARGET_SHIFT_TRUNCATION_MASK,                 \
707   TARGET_MIN_DIVISIONS_FOR_RECIP_MUL,           \
708   TARGET_MODE_REP_EXTENDED,                     \
709   TARGET_VALID_POINTER_MODE,                    \
710   TARGET_SCALAR_MODE_SUPPORTED_P,               \
711   TARGET_VECTOR_MODE_SUPPORTED_P,               \
712   TARGET_VECTOR_OPAQUE_P,                       \
713   TARGET_RTX_COSTS,                             \
714   TARGET_ADDRESS_COST,                          \
715   TARGET_ALLOCATE_INITIAL_VALUE,                \
716   TARGET_DWARF_REGISTER_SPAN,                   \
717   TARGET_INIT_DWARF_REG_SIZES_EXTRA,            \
718   TARGET_FIXED_CONDITION_CODE_REGS,             \
719   TARGET_CC_MODES_COMPATIBLE,                   \
720   TARGET_MACHINE_DEPENDENT_REORG,               \
721   TARGET_BUILD_BUILTIN_VA_LIST,                 \
722   TARGET_GIMPLIFY_VA_ARG_EXPR,                  \
723   TARGET_GET_PCH_VALIDITY,                      \
724   TARGET_PCH_VALID_P,                           \
725   TARGET_CHECK_PCH_TARGET_FLAGS,                \
726   TARGET_DEFAULT_SHORT_ENUMS,                   \
727   TARGET_BUILTIN_SETJMP_FRAME_VALUE,            \
728   TARGET_MD_ASM_CLOBBERS,                       \
729   TARGET_DWARF_CALLING_CONVENTION,              \
730   TARGET_DWARF_HANDLE_FRAME_UNSPEC,             \
731   TARGET_STDARG_OPTIMIZE_HOOK,                  \
732   TARGET_STACK_PROTECT_GUARD,                   \
733   TARGET_STACK_PROTECT_FAIL,                    \
734   TARGET_INVALID_WITHIN_DOLOOP,                 \
735   TARGET_VALID_DLLIMPORT_ATTRIBUTE_P,           \
736   TARGET_CALLS,                                 \
737   TARGET_INVALID_CONVERSION,                    \
738   TARGET_INVALID_UNARY_OP,                      \
739   TARGET_INVALID_BINARY_OP,                     \
740   TARGET_SECONDARY_RELOAD,                      \
741   TARGET_C,                                     \
742   TARGET_CXX,                                   \
743   TARGET_EXTRA_LIVE_ON_ENTRY,                   \
744   TARGET_UNWIND_TABLES_DEFAULT,                 \
745   TARGET_HAVE_NAMED_SECTIONS,                   \
746   TARGET_HAVE_SWITCHABLE_BSS_SECTIONS,          \
747   TARGET_HAVE_CTORS_DTORS,                      \
748   TARGET_HAVE_TLS,                              \
749   TARGET_HAVE_SRODATA_SECTION,                  \
750   TARGET_TERMINATE_DW2_EH_FRAME_INFO,           \
751   TARGET_ASM_FILE_START_APP_OFF,                \
752   TARGET_ASM_FILE_START_FILE_DIRECTIVE,         \
753   TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME,        \
754   TARGET_HANDLE_PRAGMA_EXTERN_PREFIX,           \
755   TARGET_RELAXED_ORDERING,                      \
756   TARGET_ARM_EABI_UNWINDER                      \
757 }
758
759 #define TARGET_HANDLE_C_OPTION default_handle_c_option
760 #define TARGETCM_INITIALIZER { TARGET_HANDLE_C_OPTION }
761
762 #include "hooks.h"
763 #include "targhooks.h"