OSDN Git Service

0a072a59e96bd179f4b768baa6e57c4ace5ebd00
[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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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_ASM_ASSEMBLE_VISIBILITY
74 #define TARGET_ASM_ASSEMBLE_VISIBILITY default_assemble_visibility
75 #endif
76
77 #define TARGET_ASM_FUNCTION_PROLOGUE default_function_pro_epilogue
78 #define TARGET_ASM_FUNCTION_EPILOGUE default_function_pro_epilogue
79 #define TARGET_ASM_FUNCTION_END_PROLOGUE no_asm_to_stream
80 #define TARGET_ASM_FUNCTION_BEGIN_EPILOGUE no_asm_to_stream
81
82 #ifndef TARGET_ASM_SELECT_SECTION
83 #define TARGET_ASM_SELECT_SECTION default_select_section
84 #endif
85
86 #ifndef TARGET_ASM_UNIQUE_SECTION
87 #define TARGET_ASM_UNIQUE_SECTION default_unique_section
88 #endif
89
90 #ifndef TARGET_ASM_FUNCTION_RODATA_SECTION
91 #define TARGET_ASM_FUNCTION_RODATA_SECTION default_function_rodata_section
92 #endif
93
94 #ifndef TARGET_ASM_SELECT_RTX_SECTION
95 #define TARGET_ASM_SELECT_RTX_SECTION default_select_rtx_section
96 #endif
97
98 #if !defined(TARGET_ASM_CONSTRUCTOR) && !defined(USE_COLLECT2)
99 # ifdef CTORS_SECTION_ASM_OP
100 #  define TARGET_ASM_CONSTRUCTOR default_ctor_section_asm_out_constructor
101 # else
102 #  ifdef TARGET_ASM_NAMED_SECTION
103 #   define TARGET_ASM_CONSTRUCTOR default_named_section_asm_out_constructor
104 #  else
105 #   define TARGET_ASM_CONSTRUCTOR default_stabs_asm_out_constructor
106 #  endif
107 # endif
108 #endif
109
110 #if !defined(TARGET_ASM_DESTRUCTOR) && !defined(USE_COLLECT2)
111 # ifdef DTORS_SECTION_ASM_OP
112 #  define TARGET_ASM_DESTRUCTOR default_dtor_section_asm_out_destructor
113 # else
114 #  ifdef TARGET_ASM_NAMED_SECTION
115 #   define TARGET_ASM_DESTRUCTOR default_named_section_asm_out_destructor
116 #  else
117 #   define TARGET_ASM_DESTRUCTOR default_stabs_asm_out_destructor
118 #  endif
119 # endif
120 #endif
121
122 #define TARGET_ASM_OUTPUT_MI_THUNK NULL
123 #define TARGET_ASM_CAN_OUTPUT_MI_THUNK hook_bool_tree_hwi_hwi_tree_false
124
125 #if defined(TARGET_ASM_CONSTRUCTOR) && defined(TARGET_ASM_DESTRUCTOR)
126 #define TARGET_HAVE_CTORS_DTORS true
127 #else
128 #define TARGET_HAVE_CTORS_DTORS false
129 #define TARGET_ASM_CONSTRUCTOR NULL
130 #define TARGET_ASM_DESTRUCTOR NULL
131 #endif
132
133 #ifdef TARGET_ASM_NAMED_SECTION
134 #define TARGET_HAVE_NAMED_SECTIONS true
135 #else
136 #define TARGET_ASM_NAMED_SECTION default_no_named_section
137 #define TARGET_HAVE_NAMED_SECTIONS false
138 #endif
139
140 #ifndef TARGET_HAVE_TLS
141 #define TARGET_HAVE_TLS false
142 #endif
143
144 #ifndef TARGET_HAVE_SRODATA_SECTION
145 #define TARGET_HAVE_SRODATA_SECTION false
146 #endif
147
148 #ifndef TARGET_TERMINATE_DW2_EH_FRAME_INFO
149 #ifdef EH_FRAME_SECTION_NAME
150 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO false
151 #else
152 #define TARGET_TERMINATE_DW2_EH_FRAME_INFO true
153 #endif
154 #endif
155
156 #define TARGET_DWARF_REGISTER_SPAN hook_rtx_rtx_null
157
158 #ifndef TARGET_ASM_EXCEPTION_SECTION
159 #define TARGET_ASM_EXCEPTION_SECTION default_exception_section
160 #endif
161
162 #ifndef TARGET_ASM_EH_FRAME_SECTION
163 #define TARGET_ASM_EH_FRAME_SECTION default_eh_frame_section
164 #endif
165
166 #ifndef TARGET_ASM_FILE_START
167 #define TARGET_ASM_FILE_START default_file_start
168 #endif
169
170 #ifndef TARGET_ASM_FILE_END
171 #define TARGET_ASM_FILE_END hook_void_void
172 #endif
173
174 #ifndef TARGET_ASM_FILE_START_APP_OFF
175 #define TARGET_ASM_FILE_START_APP_OFF false
176 #endif
177
178 #ifndef TARGET_ASM_FILE_START_FILE_DIRECTIVE
179 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE false
180 #endif
181
182 #ifndef TARGET_ASM_EXTERNAL_LIBCALL
183 #define TARGET_ASM_EXTERNAL_LIBCALL default_external_libcall
184 #endif
185
186 #ifndef TARGET_ASM_MARK_DECL_PRESERVED
187 #define TARGET_ASM_MARK_DECL_PRESERVED hook_void_constcharptr
188 #endif
189
190 #define TARGET_ASM_ALIGNED_INT_OP                               \
191                        {TARGET_ASM_ALIGNED_HI_OP,               \
192                         TARGET_ASM_ALIGNED_SI_OP,               \
193                         TARGET_ASM_ALIGNED_DI_OP,               \
194                         TARGET_ASM_ALIGNED_TI_OP}
195
196 #define TARGET_ASM_UNALIGNED_INT_OP                             \
197                        {TARGET_ASM_UNALIGNED_HI_OP,             \
198                         TARGET_ASM_UNALIGNED_SI_OP,             \
199                         TARGET_ASM_UNALIGNED_DI_OP,             \
200                         TARGET_ASM_UNALIGNED_TI_OP}
201
202 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN,                  \
203                         TARGET_ASM_CLOSE_PAREN,                 \
204                         TARGET_ASM_BYTE_OP,                     \
205                         TARGET_ASM_ALIGNED_INT_OP,              \
206                         TARGET_ASM_UNALIGNED_INT_OP,            \
207                         TARGET_ASM_INTEGER,                     \
208                         TARGET_ASM_GLOBALIZE_LABEL,             \
209                         TARGET_ASM_EMIT_UNWIND_LABEL,           \
210                         TARGET_UNWIND_EMIT,                     \
211                         TARGET_ASM_INTERNAL_LABEL,              \
212                         TARGET_ASM_ASSEMBLE_VISIBILITY,         \
213                         TARGET_ASM_FUNCTION_PROLOGUE,           \
214                         TARGET_ASM_FUNCTION_END_PROLOGUE,       \
215                         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE,     \
216                         TARGET_ASM_FUNCTION_EPILOGUE,           \
217                         TARGET_ASM_NAMED_SECTION,               \
218                         TARGET_ASM_EXCEPTION_SECTION,           \
219                         TARGET_ASM_EH_FRAME_SECTION,            \
220                         TARGET_ASM_SELECT_SECTION,              \
221                         TARGET_ASM_SELECT_RTX_SECTION,          \
222                         TARGET_ASM_UNIQUE_SECTION,              \
223                         TARGET_ASM_FUNCTION_RODATA_SECTION,     \
224                         TARGET_ASM_CONSTRUCTOR,                 \
225                         TARGET_ASM_DESTRUCTOR,                  \
226                         TARGET_ASM_OUTPUT_MI_THUNK,             \
227                         TARGET_ASM_CAN_OUTPUT_MI_THUNK,         \
228                         TARGET_ASM_FILE_START,                  \
229                         TARGET_ASM_FILE_END,                    \
230                         TARGET_ASM_EXTERNAL_LIBCALL,            \
231                         TARGET_ASM_MARK_DECL_PRESERVED}
232
233 /* Scheduler hooks.  All of these default to null pointers, which
234    haifa-sched.c looks for and handles.  */
235 #define TARGET_SCHED_ADJUST_COST 0
236 #define TARGET_SCHED_ADJUST_PRIORITY 0
237 #define TARGET_SCHED_ISSUE_RATE 0
238 #define TARGET_SCHED_VARIABLE_ISSUE 0
239 #define TARGET_SCHED_INIT 0
240 #define TARGET_SCHED_FINISH 0
241 #define TARGET_SCHED_INIT_GLOBAL 0
242 #define TARGET_SCHED_FINISH_GLOBAL 0
243 #define TARGET_SCHED_REORDER 0
244 #define TARGET_SCHED_REORDER2 0
245 #define TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK 0
246 #define TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN 0
247 #define TARGET_SCHED_DFA_PRE_CYCLE_INSN 0
248 #define TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN 0
249 #define TARGET_SCHED_DFA_POST_CYCLE_INSN 0
250 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD 0
251 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD 0
252 #define TARGET_SCHED_DFA_NEW_CYCLE 0
253 #define TARGET_SCHED_IS_COSTLY_DEPENDENCE 0
254
255 #define TARGET_SCHED                                            \
256   {TARGET_SCHED_ADJUST_COST,                                    \
257    TARGET_SCHED_ADJUST_PRIORITY,                                \
258    TARGET_SCHED_ISSUE_RATE,                                     \
259    TARGET_SCHED_VARIABLE_ISSUE,                                 \
260    TARGET_SCHED_INIT,                                           \
261    TARGET_SCHED_FINISH,                                         \
262    TARGET_SCHED_INIT_GLOBAL,                                    \
263    TARGET_SCHED_FINISH_GLOBAL,                                  \
264    TARGET_SCHED_REORDER,                                        \
265    TARGET_SCHED_REORDER2,                                       \
266    TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK,                   \
267    TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,                        \
268    TARGET_SCHED_DFA_PRE_CYCLE_INSN,                             \
269    TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,                       \
270    TARGET_SCHED_DFA_POST_CYCLE_INSN,                            \
271    TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,            \
272    TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,      \
273    TARGET_SCHED_DFA_NEW_CYCLE,                                  \
274    TARGET_SCHED_IS_COSTLY_DEPENDENCE}
275
276 #define TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD 0
277
278 #define TARGET_VECTORIZE                                                \
279   {TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD}
280
281 /* In except.c */
282 #define TARGET_EH_RETURN_FILTER_MODE  default_eh_return_filter_mode
283
284 /* In tree.c.  */
285 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
286 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
287 #define TARGET_ATTRIBUTE_TABLE NULL
288
289 /* In cse.c.  */
290 #define TARGET_ADDRESS_COST default_address_cost
291
292 /* In builtins.c.  */
293 #define TARGET_INIT_BUILTINS hook_void_void
294 #define TARGET_EXPAND_BUILTIN default_expand_builtin
295 #define TARGET_FOLD_BUILTIN hook_tree_tree_bool_null
296
297 /* In varasm.c.  */
298 #ifndef TARGET_SECTION_TYPE_FLAGS
299 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
300 #endif
301
302 #ifndef TARGET_STRIP_NAME_ENCODING
303 #define TARGET_STRIP_NAME_ENCODING default_strip_name_encoding
304 #endif
305
306 #ifndef TARGET_BINDS_LOCAL_P
307 #define TARGET_BINDS_LOCAL_P default_binds_local_p
308 #endif
309
310 #ifndef TARGET_SHIFT_TRUNCATION_MASK
311 #define TARGET_SHIFT_TRUNCATION_MASK default_shift_truncation_mask
312 #endif
313
314 #ifndef TARGET_VALID_POINTER_MODE
315 #define TARGET_VALID_POINTER_MODE default_valid_pointer_mode
316 #endif
317
318 #ifndef TARGET_SCALAR_MODE_SUPPORTED_P
319 #define TARGET_SCALAR_MODE_SUPPORTED_P default_scalar_mode_supported_p
320 #endif
321
322 #ifndef TARGET_VECTOR_MODE_SUPPORTED_P
323 #define TARGET_VECTOR_MODE_SUPPORTED_P hook_bool_mode_false
324 #endif
325
326 #ifndef TARGET_VECTOR_OPAQUE_P
327 #define TARGET_VECTOR_OPAQUE_P hook_bool_tree_false
328 #endif
329
330 /* In hooks.c.  */
331 #define TARGET_CANNOT_MODIFY_JUMPS_P hook_bool_void_false
332 #define TARGET_BRANCH_TARGET_REGISTER_CLASS hook_int_void_no_regs
333 #define TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED hook_bool_bool_false
334 #define TARGET_CANNOT_FORCE_CONST_MEM hook_bool_rtx_false
335 #define TARGET_CANNOT_COPY_INSN_P NULL
336 #define TARGET_DELEGITIMIZE_ADDRESS hook_rtx_rtx_identity
337 #define TARGET_FUNCTION_OK_FOR_SIBCALL hook_bool_tree_tree_false
338 #define TARGET_COMP_TYPE_ATTRIBUTES hook_int_tree_tree_1
339 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES hook_void_tree
340 #define TARGET_INSERT_ATTRIBUTES hook_void_tree_treeptr
341 #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_tree_false
342 #define TARGET_MS_BITFIELD_LAYOUT_P hook_bool_tree_false
343 #define TARGET_ALIGN_ANON_BITFIELD hook_bool_void_false
344 #define TARGET_RTX_COSTS hook_bool_rtx_int_int_intp_false
345 #define TARGET_MANGLE_FUNDAMENTAL_TYPE hook_constcharptr_tree_null
346
347 #ifndef TARGET_INIT_LIBFUNCS
348 #define TARGET_INIT_LIBFUNCS hook_void_void
349 #endif
350
351 #ifndef TARGET_IN_SMALL_DATA_P
352 #define TARGET_IN_SMALL_DATA_P hook_bool_tree_false
353 #endif
354
355 #ifndef TARGET_ENCODE_SECTION_INFO
356 #define TARGET_ENCODE_SECTION_INFO default_encode_section_info
357 #endif
358
359 #ifndef TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
360 #define TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN hook_invalid_arg_for_unprototyped_fn
361 #endif
362
363 #define TARGET_FIXED_CONDITION_CODE_REGS hook_bool_uintp_uintp_false
364
365 #define TARGET_CC_MODES_COMPATIBLE default_cc_modes_compatible
366
367 #define TARGET_MACHINE_DEPENDENT_REORG 0
368
369 #define TARGET_BUILD_BUILTIN_VA_LIST std_build_builtin_va_list
370
371 #define TARGET_GET_PCH_VALIDITY default_get_pch_validity
372 #define TARGET_PCH_VALID_P default_pch_valid_p
373
374 #define TARGET_DEFAULT_SHORT_ENUMS hook_bool_void_false
375
376 #define TARGET_BUILTIN_SETJMP_FRAME_VALUE default_builtin_setjmp_frame_value
377
378 #define TARGET_MD_ASM_CLOBBERS hook_tree_tree_identity
379
380 #define TARGET_DWARF_CALLING_CONVENTION hook_int_tree_0
381
382 #define TARGET_DWARF_HANDLE_FRAME_UNSPEC 0
383
384 #define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false
385 #define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_false
386 #define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_false
387
388 #define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null
389 #define TARGET_RETURN_IN_MEMORY default_return_in_memory
390 #define TARGET_RETURN_IN_MSB hook_bool_tree_false
391
392 #define TARGET_EXPAND_BUILTIN_SAVEREGS default_expand_builtin_saveregs
393 #define TARGET_SETUP_INCOMING_VARARGS default_setup_incoming_varargs
394 #define TARGET_STRICT_ARGUMENT_NAMING hook_bool_CUMULATIVE_ARGS_false
395 #define TARGET_PRETEND_OUTGOING_VARARGS_NAMED \
396   default_pretend_outgoing_varargs_named
397 #define TARGET_SPLIT_COMPLEX_ARG NULL
398
399 #define TARGET_GIMPLIFY_VA_ARG_EXPR std_gimplify_va_arg_expr
400 #define TARGET_PASS_BY_REFERENCE hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
401
402 #define TARGET_RELAXED_ORDERING false
403
404 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size_or_pad
405 #define TARGET_CALLEE_COPIES hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false
406 #define TARGET_ARG_PARTIAL_BYTES hook_int_CUMULATIVE_ARGS_mode_tree_bool_0
407
408 #define TARGET_CALLS {                                          \
409    TARGET_PROMOTE_FUNCTION_ARGS,                                \
410    TARGET_PROMOTE_FUNCTION_RETURN,                              \
411    TARGET_PROMOTE_PROTOTYPES,                                   \
412    TARGET_STRUCT_VALUE_RTX,                                     \
413    TARGET_RETURN_IN_MEMORY,                                     \
414    TARGET_RETURN_IN_MSB,                                        \
415    TARGET_PASS_BY_REFERENCE,                                    \
416    TARGET_EXPAND_BUILTIN_SAVEREGS,                              \
417    TARGET_SETUP_INCOMING_VARARGS,                               \
418    TARGET_STRICT_ARGUMENT_NAMING,                               \
419    TARGET_PRETEND_OUTGOING_VARARGS_NAMED,                       \
420    TARGET_SPLIT_COMPLEX_ARG,                                    \
421    TARGET_MUST_PASS_IN_STACK,                                   \
422    TARGET_CALLEE_COPIES,                                        \
423    TARGET_ARG_PARTIAL_BYTES,                                    \
424    TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN                       \
425    }
426
427
428 #ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
429 #define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
430 #endif
431
432 #ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
433 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
434 #endif
435
436
437 /* C++ specific.  */
438 #ifndef TARGET_CXX_GUARD_TYPE
439 #define TARGET_CXX_GUARD_TYPE default_cxx_guard_type
440 #endif
441
442 #ifndef TARGET_CXX_GUARD_MASK_BIT
443 #define TARGET_CXX_GUARD_MASK_BIT hook_bool_void_false
444 #endif
445
446 #ifndef TARGET_CXX_GET_COOKIE_SIZE
447 #define TARGET_CXX_GET_COOKIE_SIZE default_cxx_get_cookie_size
448 #endif
449
450 #ifndef TARGET_CXX_COOKIE_HAS_SIZE
451 #define TARGET_CXX_COOKIE_HAS_SIZE hook_bool_void_false
452 #endif
453
454 #ifndef TARGET_CXX_IMPORT_EXPORT_CLASS
455 #define TARGET_CXX_IMPORT_EXPORT_CLASS NULL
456 #endif
457
458 #ifndef TARGET_CXX_CDTOR_RETURNS_THIS
459 #define TARGET_CXX_CDTOR_RETURNS_THIS hook_bool_void_false
460 #endif
461
462 #ifndef TARGET_CXX_KEY_METHOD_MAY_BE_INLINE
463 #define TARGET_CXX_KEY_METHOD_MAY_BE_INLINE hook_bool_void_true
464 #endif
465
466 #ifndef TARGET_CXX_EXPORT_CLASS_DATA
467 #define TARGET_CXX_EXPORT_CLASS_DATA hook_bool_void_false
468 #endif
469
470 #define TARGET_CXX                              \
471   {                                             \
472     TARGET_CXX_GUARD_TYPE,                      \
473     TARGET_CXX_GUARD_MASK_BIT,                  \
474     TARGET_CXX_GET_COOKIE_SIZE,                 \
475     TARGET_CXX_COOKIE_HAS_SIZE,                 \
476     TARGET_CXX_IMPORT_EXPORT_CLASS,             \
477     TARGET_CXX_CDTOR_RETURNS_THIS,              \
478     TARGET_CXX_KEY_METHOD_MAY_BE_INLINE,        \
479     TARGET_CXX_EXPORT_CLASS_DATA                \
480   }
481
482 /* The whole shebang.  */
483 #define TARGET_INITIALIZER                      \
484 {                                               \
485   TARGET_ASM_OUT,                               \
486   TARGET_SCHED,                                 \
487   TARGET_VECTORIZE,                             \
488   TARGET_EH_RETURN_FILTER_MODE,                 \
489   TARGET_MERGE_DECL_ATTRIBUTES,                 \
490   TARGET_MERGE_TYPE_ATTRIBUTES,                 \
491   TARGET_ATTRIBUTE_TABLE,                       \
492   TARGET_COMP_TYPE_ATTRIBUTES,                  \
493   TARGET_SET_DEFAULT_TYPE_ATTRIBUTES,           \
494   TARGET_INSERT_ATTRIBUTES,                     \
495   TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,        \
496   TARGET_MS_BITFIELD_LAYOUT_P,                  \
497   TARGET_ALIGN_ANON_BITFIELD,                   \
498   TARGET_INIT_BUILTINS,                         \
499   TARGET_EXPAND_BUILTIN,                        \
500   TARGET_FOLD_BUILTIN,                          \
501   TARGET_MANGLE_FUNDAMENTAL_TYPE,               \
502   TARGET_INIT_LIBFUNCS,                         \
503   TARGET_SECTION_TYPE_FLAGS,                    \
504   TARGET_CANNOT_MODIFY_JUMPS_P,                 \
505   TARGET_BRANCH_TARGET_REGISTER_CLASS,          \
506   TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED,   \
507   TARGET_CANNOT_FORCE_CONST_MEM,                \
508   TARGET_CANNOT_COPY_INSN_P,                    \
509   TARGET_DELEGITIMIZE_ADDRESS,                  \
510   TARGET_FUNCTION_OK_FOR_SIBCALL,               \
511   TARGET_IN_SMALL_DATA_P,                       \
512   TARGET_BINDS_LOCAL_P,                         \
513   TARGET_ENCODE_SECTION_INFO,                   \
514   TARGET_STRIP_NAME_ENCODING,                   \
515   TARGET_SHIFT_TRUNCATION_MASK,                 \
516   TARGET_VALID_POINTER_MODE,                    \
517   TARGET_SCALAR_MODE_SUPPORTED_P,               \
518   TARGET_VECTOR_MODE_SUPPORTED_P,               \
519   TARGET_VECTOR_OPAQUE_P,                       \
520   TARGET_RTX_COSTS,                             \
521   TARGET_ADDRESS_COST,                          \
522   TARGET_DWARF_REGISTER_SPAN,                   \
523   TARGET_FIXED_CONDITION_CODE_REGS,             \
524   TARGET_CC_MODES_COMPATIBLE,                   \
525   TARGET_MACHINE_DEPENDENT_REORG,               \
526   TARGET_BUILD_BUILTIN_VA_LIST,                 \
527   TARGET_GIMPLIFY_VA_ARG_EXPR,                  \
528   TARGET_GET_PCH_VALIDITY,                      \
529   TARGET_PCH_VALID_P,                           \
530   TARGET_DEFAULT_SHORT_ENUMS,                   \
531   TARGET_BUILTIN_SETJMP_FRAME_VALUE,            \
532   TARGET_MD_ASM_CLOBBERS,                       \
533   TARGET_DWARF_CALLING_CONVENTION,              \
534   TARGET_DWARF_HANDLE_FRAME_UNSPEC,             \
535   TARGET_CALLS,                                 \
536   TARGET_CXX,                                   \
537   TARGET_HAVE_NAMED_SECTIONS,                   \
538   TARGET_HAVE_CTORS_DTORS,                      \
539   TARGET_HAVE_TLS,                              \
540   TARGET_HAVE_SRODATA_SECTION,                  \
541   TARGET_TERMINATE_DW2_EH_FRAME_INFO,           \
542   TARGET_ASM_FILE_START_APP_OFF,                \
543   TARGET_ASM_FILE_START_FILE_DIRECTIVE,         \
544   TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME,        \
545   TARGET_HANDLE_PRAGMA_EXTERN_PREFIX,           \
546   TARGET_RELAXED_ORDERING,                      \
547 }
548
549 #include "hooks.h"
550 #include "targhooks.h"