OSDN Git Service

* target.h (invalid_conversion, invalid_unary_op,
[pf3gnuchains/gcc-fork.git] / gcc / target-def.h
1 /* Default initializers for a generic GCC target.
2    Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
3
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.
8
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.
13
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.
17
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!  */
21
22 /* See target.h for a description of what this file contains and how to
23    use it.
24
25    We want to have non-NULL default definitions of all hook functions,
26    even if they do nothing.  */
27
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.  */
31
32 /* Assembler output.  */
33 #define TARGET_ASM_OPEN_PAREN "("
34 #define TARGET_ASM_CLOSE_PAREN ")"
35 #define TARGET_ASM_BYTE_OP "\t.byte\t"
36
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
41
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 */
54
55 #define TARGET_ASM_INTEGER default_assemble_integer
56
57 #ifndef TARGET_ASM_GLOBALIZE_LABEL
58 #define TARGET_ASM_GLOBALIZE_LABEL default_globalize_label
59 #endif
60
61 #ifndef TARGET_ASM_EMIT_UNWIND_LABEL
62 #define TARGET_ASM_EMIT_UNWIND_LABEL default_emit_unwind_label
63 #endif
64
65 #ifndef TARGET_UNWIND_EMIT
66 #define TARGET_UNWIND_EMIT default_unwind_emit
67 #endif
68
69 #ifndef TARGET_ASM_INTERNAL_LABEL
70 #define TARGET_ASM_INTERNAL_LABEL default_internal_label
71 #endif
72
73 #ifndef TARGET_ARM_TTYPE
74 #define TARGET_ASM_TTYPE hook_bool_rtx_false
75 #endif
76
77 #ifndef TARGET_ASM_ASSEMBLE_VISIBILITY
78 #define TARGET_ASM_ASSEMBLE_VISIBILITY default_assemble_visibility
79 #endif
80
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
85
86 #ifndef TARGET_ASM_SELECT_SECTION
87 #define TARGET_ASM_SELECT_SECTION default_select_section
88 #endif
89
90 #ifndef TARGET_ASM_UNIQUE_SECTION
91 #define TARGET_ASM_UNIQUE_SECTION default_unique_section
92 #endif
93
94 #ifndef TARGET_ASM_FUNCTION_RODATA_SECTION
95 #define TARGET_ASM_FUNCTION_RODATA_SECTION default_function_rodata_section
96 #endif
97
98 #ifndef TARGET_ASM_SELECT_RTX_SECTION
99 #define TARGET_ASM_SELECT_RTX_SECTION default_select_rtx_section
100 #endif
101
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
113
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
125
126 #define TARGET_ASM_OUTPUT_MI_THUNK NULL
127 #define TARGET_ASM_CAN_OUTPUT_MI_THUNK hook_bool_tree_hwi_hwi_tree_false
128
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
136
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
143
144 #ifndef TARGET_INVALID_WITHIN_DOLOOP
145 #define TARGET_INVALID_WITHIN_DOLOOP default_invalid_within_doloop
146 #endif
147
148 #ifndef TARGET_HAVE_TLS
149 #define TARGET_HAVE_TLS false
150 #endif
151
152 #ifndef TARGET_HAVE_SRODATA_SECTION
153 #define TARGET_HAVE_SRODATA_SECTION false
154 #endif
155
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
163
164 #define TARGET_DWARF_REGISTER_SPAN hook_rtx_rtx_null
165
166 #ifndef TARGET_ASM_EXCEPTION_SECTION
167 #define TARGET_ASM_EXCEPTION_SECTION default_exception_section
168 #endif
169
170 #ifndef TARGET_ASM_EH_FRAME_SECTION
171 #define TARGET_ASM_EH_FRAME_SECTION default_eh_frame_section
172 #endif
173
174 #ifndef TARGET_ASM_FILE_START
175 #define TARGET_ASM_FILE_START default_file_start
176 #endif
177
178 #ifndef TARGET_ASM_FILE_END
179 #define TARGET_ASM_FILE_END hook_void_void
180 #endif
181
182 #ifndef TARGET_ASM_FILE_START_APP_OFF
183 #define TARGET_ASM_FILE_START_APP_OFF false
184 #endif
185
186 #ifndef TARGET_ASM_FILE_START_FILE_DIRECTIVE
187 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE false
188 #endif
189
190 #ifndef TARGET_ASM_EXTERNAL_LIBCALL
191 #define TARGET_ASM_EXTERNAL_LIBCALL default_external_libcall
192 #endif
193
194 #ifndef TARGET_ASM_MARK_DECL_PRESERVED
195 #define TARGET_ASM_MARK_DECL_PRESERVED hook_void_constcharptr
196 #endif
197
198 #ifndef TARGET_ASM_OUTPUT_DWARF_DTPREL
199 #define TARGET_ASM_OUTPUT_DWARF_DTPREL NULL
200 #endif
201
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}
207
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}
213
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}
246
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
268
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}
289
290 #define TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD 0
291
292 #define TARGET_VECTORIZE                                                \
293   {TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD}
294
295 #define TARGET_DEFAULT_TARGET_FLAGS 0
296
297 #define TARGET_HANDLE_OPTION hook_bool_size_t_constcharptr_int_true
298
299 /* In except.c */
300 #define TARGET_EH_RETURN_FILTER_MODE  default_eh_return_filter_mode
301
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
306
307 /* In cse.c.  */
308 #define TARGET_ADDRESS_COST default_address_cost
309
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
315
316 /* In varasm.c.  */
317 #ifndef TARGET_SECTION_TYPE_FLAGS
318 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
319 #endif
320
321 #ifndef TARGET_STRIP_NAME_ENCODING
322 #define TARGET_STRIP_NAME_ENCODING default_strip_name_encoding
323 #endif
324
325 #ifndef TARGET_BINDS_LOCAL_P
326 #define TARGET_BINDS_LOCAL_P default_binds_local_p
327 #endif
328
329 #ifndef TARGET_SHIFT_TRUNCATION_MASK
330 #define TARGET_SHIFT_TRUNCATION_MASK default_shift_truncation_mask
331 #endif
332
333 #ifndef TARGET_VALID_POINTER_MODE
334 #define TARGET_VALID_POINTER_MODE default_valid_pointer_mode
335 #endif
336
337 #ifndef TARGET_SCALAR_MODE_SUPPORTED_P
338 #define TARGET_SCALAR_MODE_SUPPORTED_P default_scalar_mode_supported_p
339 #endif
340
341 #ifndef TARGET_VECTOR_MODE_SUPPORTED_P
342 #define TARGET_VECTOR_MODE_SUPPORTED_P hook_bool_mode_false
343 #endif
344
345 #ifndef TARGET_VECTOR_OPAQUE_P
346 #define TARGET_VECTOR_OPAQUE_P hook_bool_tree_false
347 #endif
348
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_DELEGITIMIZE_ADDRESS hook_rtx_rtx_identity
356 #define TARGET_FUNCTION_OK_FOR_SIBCALL hook_bool_tree_tree_false
357 #define TARGET_COMP_TYPE_ATTRIBUTES hook_int_tree_tree_1
358 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES hook_void_tree
359 #define TARGET_INSERT_ATTRIBUTES hook_void_tree_treeptr
360 #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_tree_false
361 #define TARGET_MS_BITFIELD_LAYOUT_P hook_bool_tree_false
362 #define TARGET_ALIGN_ANON_BITFIELD hook_bool_void_false
363 #define TARGET_RTX_COSTS hook_bool_rtx_int_int_intp_false
364 #define TARGET_MANGLE_FUNDAMENTAL_TYPE hook_constcharptr_tree_null
365
366 #ifndef TARGET_INIT_LIBFUNCS
367 #define TARGET_INIT_LIBFUNCS hook_void_void
368 #endif
369
370 #ifndef TARGET_IN_SMALL_DATA_P
371 #define TARGET_IN_SMALL_DATA_P hook_bool_tree_false
372 #endif
373
374 #ifndef TARGET_ENCODE_SECTION_INFO
375 #define TARGET_ENCODE_SECTION_INFO default_encode_section_info
376 #endif
377
378 #ifndef TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
379 #define TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN hook_invalid_arg_for_unprototyped_fn
380 #endif
381
382 #define TARGET_INVALID_CONVERSION hook_constcharptr_tree_tree_null
383 #define TARGET_INVALID_UNARY_OP hook_constcharptr_int_tree_null
384 #define TARGET_INVALID_BINARY_OP hook_constcharptr_int_tree_tree_null
385
386 #define TARGET_FIXED_CONDITION_CODE_REGS hook_bool_uintp_uintp_false
387
388 #define TARGET_CC_MODES_COMPATIBLE default_cc_modes_compatible
389
390 #define TARGET_MACHINE_DEPENDENT_REORG 0
391
392 #define TARGET_BUILD_BUILTIN_VA_LIST std_build_builtin_va_list
393
394 #define TARGET_GET_PCH_VALIDITY default_get_pch_validity
395 #define TARGET_PCH_VALID_P default_pch_valid_p
396 #define TARGET_CHECK_PCH_TARGET_FLAGS NULL
397
398 #define TARGET_DEFAULT_SHORT_ENUMS hook_bool_void_false
399
400 #define TARGET_BUILTIN_SETJMP_FRAME_VALUE default_builtin_setjmp_frame_value
401
402 #define TARGET_MD_ASM_CLOBBERS hook_tree_tree_tree_tree_3rd_identity
403
404 #define TARGET_DWARF_CALLING_CONVENTION hook_int_tree_0
405
406 #define TARGET_DWARF_HANDLE_FRAME_UNSPEC 0
407
408 #define TARGET_STDARG_OPTIMIZE_HOOK 0
409
410 #define TARGET_STACK_PROTECT_GUARD  default_stack_protect_guard
411 #define TARGET_STACK_PROTECT_FAIL   default_external_stack_protect_fail
412
413 #define TARGET_ARM_EABI_UNWINDER false
414
415 #define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false
416 #define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_false
417 #define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_false
418
419 #define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null
420 #define TARGET_RETURN_IN_MEMORY default_return_in_memory
421 #define TARGET_RETURN_IN_MSB hook_bool_tree_false
422
423 #define TARGET_EXPAND_BUILTIN_SAVEREGS default_expand_builtin_saveregs
424 #define TARGET_SETUP_INCOMING_VARARGS default_setup_incoming_varargs
425 #define TARGET_STRICT_ARGUMENT_NAMING hook_bool_CUMULATIVE_ARGS_false
426 #define TARGET_PRETEND_OUTGOING_VARARGS_NAMED \
427   default_pretend_outgoing_varargs_named
428 #define TARGET_SPLIT_COMPLEX_ARG NULL
429
430 #define TARGET_GIMPLIFY_VA_ARG_EXPR std_gimplify_va_arg_expr
431 #define TARGET_PASS_BY_REFERENCE hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
432
433 #define TARGET_RELAXED_ORDERING false
434
435 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size_or_pad
436 #define TARGET_CALLEE_COPIES hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
437 #define TARGET_ARG_PARTIAL_BYTES hook_int_CUMULATIVE_ARGS_mode_tree_bool_0
438
439 #define TARGET_CALLS {                                          \
440    TARGET_PROMOTE_FUNCTION_ARGS,                                \
441    TARGET_PROMOTE_FUNCTION_RETURN,                              \
442    TARGET_PROMOTE_PROTOTYPES,                                   \
443    TARGET_STRUCT_VALUE_RTX,                                     \
444    TARGET_RETURN_IN_MEMORY,                                     \
445    TARGET_RETURN_IN_MSB,                                        \
446    TARGET_PASS_BY_REFERENCE,                                    \
447    TARGET_EXPAND_BUILTIN_SAVEREGS,                              \
448    TARGET_SETUP_INCOMING_VARARGS,                               \
449    TARGET_STRICT_ARGUMENT_NAMING,                               \
450    TARGET_PRETEND_OUTGOING_VARARGS_NAMED,                       \
451    TARGET_SPLIT_COMPLEX_ARG,                                    \
452    TARGET_MUST_PASS_IN_STACK,                                   \
453    TARGET_CALLEE_COPIES,                                        \
454    TARGET_ARG_PARTIAL_BYTES,                                    \
455    TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN                       \
456    }
457
458 #ifndef TARGET_UNWIND_TABLES_DEFAULT
459 #define TARGET_UNWIND_TABLES_DEFAULT false
460 #endif
461
462 #ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
463 #define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
464 #endif
465
466 #ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
467 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
468 #endif
469
470
471 /* C++ specific.  */
472 #ifndef TARGET_CXX_GUARD_TYPE
473 #define TARGET_CXX_GUARD_TYPE default_cxx_guard_type
474 #endif
475
476 #ifndef TARGET_CXX_GUARD_MASK_BIT
477 #define TARGET_CXX_GUARD_MASK_BIT hook_bool_void_false
478 #endif
479
480 #ifndef TARGET_CXX_GET_COOKIE_SIZE
481 #define TARGET_CXX_GET_COOKIE_SIZE default_cxx_get_cookie_size
482 #endif
483
484 #ifndef TARGET_CXX_COOKIE_HAS_SIZE
485 #define TARGET_CXX_COOKIE_HAS_SIZE hook_bool_void_false
486 #endif
487
488 #ifndef TARGET_CXX_IMPORT_EXPORT_CLASS
489 #define TARGET_CXX_IMPORT_EXPORT_CLASS NULL
490 #endif
491
492 #ifndef TARGET_CXX_CDTOR_RETURNS_THIS
493 #define TARGET_CXX_CDTOR_RETURNS_THIS hook_bool_void_false
494 #endif
495
496 #ifndef TARGET_CXX_KEY_METHOD_MAY_BE_INLINE
497 #define TARGET_CXX_KEY_METHOD_MAY_BE_INLINE hook_bool_void_true
498 #endif
499
500 #ifndef TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY
501 #define TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY hook_void_tree
502 #endif
503
504 #ifndef TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT
505 #define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_true
506 #endif
507
508 #ifndef TARGET_CXX_USE_AEABI_ATEXIT
509 #define TARGET_CXX_USE_AEABI_ATEXIT hook_bool_void_false
510 #endif
511
512 #define TARGET_CXX                              \
513   {                                             \
514     TARGET_CXX_GUARD_TYPE,                      \
515     TARGET_CXX_GUARD_MASK_BIT,                  \
516     TARGET_CXX_GET_COOKIE_SIZE,                 \
517     TARGET_CXX_COOKIE_HAS_SIZE,                 \
518     TARGET_CXX_IMPORT_EXPORT_CLASS,             \
519     TARGET_CXX_CDTOR_RETURNS_THIS,              \
520     TARGET_CXX_KEY_METHOD_MAY_BE_INLINE,        \
521     TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY, \
522     TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT,        \
523     TARGET_CXX_USE_AEABI_ATEXIT,                \
524   }
525
526 /* The whole shebang.  */
527 #define TARGET_INITIALIZER                      \
528 {                                               \
529   TARGET_ASM_OUT,                               \
530   TARGET_SCHED,                                 \
531   TARGET_VECTORIZE,                             \
532   TARGET_DEFAULT_TARGET_FLAGS,                  \
533   TARGET_HANDLE_OPTION,                         \
534   TARGET_EH_RETURN_FILTER_MODE,                 \
535   TARGET_MERGE_DECL_ATTRIBUTES,                 \
536   TARGET_MERGE_TYPE_ATTRIBUTES,                 \
537   TARGET_ATTRIBUTE_TABLE,                       \
538   TARGET_COMP_TYPE_ATTRIBUTES,                  \
539   TARGET_SET_DEFAULT_TYPE_ATTRIBUTES,           \
540   TARGET_INSERT_ATTRIBUTES,                     \
541   TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,        \
542   TARGET_MS_BITFIELD_LAYOUT_P,                  \
543   TARGET_ALIGN_ANON_BITFIELD,                   \
544   TARGET_INIT_BUILTINS,                         \
545   TARGET_EXPAND_BUILTIN,                        \
546   TARGET_RESOLVE_OVERLOADED_BUILTIN,            \
547   TARGET_FOLD_BUILTIN,                          \
548   TARGET_MANGLE_FUNDAMENTAL_TYPE,               \
549   TARGET_INIT_LIBFUNCS,                         \
550   TARGET_SECTION_TYPE_FLAGS,                    \
551   TARGET_CANNOT_MODIFY_JUMPS_P,                 \
552   TARGET_BRANCH_TARGET_REGISTER_CLASS,          \
553   TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED,   \
554   TARGET_CANNOT_FORCE_CONST_MEM,                \
555   TARGET_CANNOT_COPY_INSN_P,                    \
556   TARGET_DELEGITIMIZE_ADDRESS,                  \
557   TARGET_FUNCTION_OK_FOR_SIBCALL,               \
558   TARGET_IN_SMALL_DATA_P,                       \
559   TARGET_BINDS_LOCAL_P,                         \
560   TARGET_ENCODE_SECTION_INFO,                   \
561   TARGET_STRIP_NAME_ENCODING,                   \
562   TARGET_SHIFT_TRUNCATION_MASK,                 \
563   TARGET_VALID_POINTER_MODE,                    \
564   TARGET_SCALAR_MODE_SUPPORTED_P,               \
565   TARGET_VECTOR_MODE_SUPPORTED_P,               \
566   TARGET_VECTOR_OPAQUE_P,                       \
567   TARGET_RTX_COSTS,                             \
568   TARGET_ADDRESS_COST,                          \
569   TARGET_DWARF_REGISTER_SPAN,                   \
570   TARGET_FIXED_CONDITION_CODE_REGS,             \
571   TARGET_CC_MODES_COMPATIBLE,                   \
572   TARGET_MACHINE_DEPENDENT_REORG,               \
573   TARGET_BUILD_BUILTIN_VA_LIST,                 \
574   TARGET_GIMPLIFY_VA_ARG_EXPR,                  \
575   TARGET_GET_PCH_VALIDITY,                      \
576   TARGET_PCH_VALID_P,                           \
577   TARGET_CHECK_PCH_TARGET_FLAGS,                \
578   TARGET_DEFAULT_SHORT_ENUMS,                   \
579   TARGET_BUILTIN_SETJMP_FRAME_VALUE,            \
580   TARGET_MD_ASM_CLOBBERS,                       \
581   TARGET_DWARF_CALLING_CONVENTION,              \
582   TARGET_DWARF_HANDLE_FRAME_UNSPEC,             \
583   TARGET_STDARG_OPTIMIZE_HOOK,                  \
584   TARGET_STACK_PROTECT_GUARD,                   \
585   TARGET_STACK_PROTECT_FAIL,                    \
586   TARGET_INVALID_WITHIN_DOLOOP,                 \
587   TARGET_CALLS,                                 \
588   TARGET_INVALID_CONVERSION,                    \
589   TARGET_INVALID_UNARY_OP,                      \
590   TARGET_INVALID_BINARY_OP,                     \
591   TARGET_CXX,                                   \
592   TARGET_UNWIND_TABLES_DEFAULT,                 \
593   TARGET_HAVE_NAMED_SECTIONS,                   \
594   TARGET_HAVE_CTORS_DTORS,                      \
595   TARGET_HAVE_TLS,                              \
596   TARGET_HAVE_SRODATA_SECTION,                  \
597   TARGET_TERMINATE_DW2_EH_FRAME_INFO,           \
598   TARGET_ASM_FILE_START_APP_OFF,                \
599   TARGET_ASM_FILE_START_FILE_DIRECTIVE,         \
600   TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME,        \
601   TARGET_HANDLE_PRAGMA_EXTERN_PREFIX,           \
602   TARGET_RELAXED_ORDERING,                      \
603   TARGET_ARM_EABI_UNWINDER                      \
604 }
605
606 #include "hooks.h"
607 #include "targhooks.h"