Mercurial > hg > CbC > CbC_gcc
comparison gcc/langhooks-def.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Default macros to initialize the lang_hooks data structure. | 1 /* Default macros to initialize the lang_hooks data structure. |
2 Copyright (C) 2001-2017 Free Software Foundation, Inc. | 2 Copyright (C) 2001-2018 Free Software Foundation, Inc. |
3 Contributed by Alexandre Oliva <aoliva@redhat.com> | 3 Contributed by Alexandre Oliva <aoliva@redhat.com> |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify | 7 GCC is free software; you can redistribute it and/or modify |
49 extern const char *lhd_decl_printable_name (tree, int); | 49 extern const char *lhd_decl_printable_name (tree, int); |
50 extern const char *lhd_dwarf_name (tree, int); | 50 extern const char *lhd_dwarf_name (tree, int); |
51 extern int lhd_types_compatible_p (tree, tree); | 51 extern int lhd_types_compatible_p (tree, tree); |
52 extern void lhd_print_error_function (diagnostic_context *, | 52 extern void lhd_print_error_function (diagnostic_context *, |
53 const char *, struct diagnostic_info *); | 53 const char *, struct diagnostic_info *); |
54 extern void lhd_set_decl_assembler_name (tree); | 54 extern void lhd_set_decl_assembler_name (tree decl); |
55 extern void lhd_overwrite_decl_assembler_name (tree decl, tree name); | |
55 extern bool lhd_warn_unused_global_decl (const_tree); | 56 extern bool lhd_warn_unused_global_decl (const_tree); |
56 extern tree lhd_type_for_size (unsigned precision, int unsignedp); | 57 extern tree lhd_type_for_size (unsigned precision, int unsignedp); |
57 extern void lhd_incomplete_type_error (location_t, const_tree, const_tree); | 58 extern void lhd_incomplete_type_error (location_t, const_tree, const_tree); |
58 extern tree lhd_type_promotes_to (tree); | 59 extern tree lhd_type_promotes_to (tree); |
59 extern void lhd_register_builtin_type (tree, const char *); | 60 extern void lhd_register_builtin_type (tree, const char *); |
67 /* Declarations of default tree inlining hooks. */ | 68 /* Declarations of default tree inlining hooks. */ |
68 extern void lhd_initialize_diagnostics (diagnostic_context *); | 69 extern void lhd_initialize_diagnostics (diagnostic_context *); |
69 extern void lhd_init_options (unsigned int, | 70 extern void lhd_init_options (unsigned int, |
70 struct cl_decoded_option *); | 71 struct cl_decoded_option *); |
71 extern bool lhd_complain_wrong_lang_p (const struct cl_option *); | 72 extern bool lhd_complain_wrong_lang_p (const struct cl_option *); |
72 extern bool lhd_handle_option (size_t, const char *, int, int, location_t, | 73 extern bool lhd_handle_option (size_t, const char *, HOST_WIDE_INT, int, |
73 const struct cl_option_handlers *); | 74 location_t, const struct cl_option_handlers *); |
74 | 75 |
75 | 76 |
76 /* Declarations for tree gimplification hooks. */ | 77 /* Declarations for tree gimplification hooks. */ |
77 extern int lhd_gimplify_expr (tree *, gimple_seq *, gimple_seq *); | 78 extern int lhd_gimplify_expr (tree *, gimple_seq *, gimple_seq *); |
78 extern enum omp_clause_default_kind lhd_omp_predetermined_sharing (tree); | 79 extern enum omp_clause_default_kind lhd_omp_predetermined_sharing (tree); |
105 #define LANG_HOOKS_MISSING_NORETURN_OK_P hook_bool_tree_true | 106 #define LANG_HOOKS_MISSING_NORETURN_OK_P hook_bool_tree_true |
106 #define LANG_HOOKS_GET_ALIAS_SET lhd_get_alias_set | 107 #define LANG_HOOKS_GET_ALIAS_SET lhd_get_alias_set |
107 #define LANG_HOOKS_FINISH_INCOMPLETE_DECL lhd_do_nothing_t | 108 #define LANG_HOOKS_FINISH_INCOMPLETE_DECL lhd_do_nothing_t |
108 #define LANG_HOOKS_DUP_LANG_SPECIFIC_DECL lhd_do_nothing_t | 109 #define LANG_HOOKS_DUP_LANG_SPECIFIC_DECL lhd_do_nothing_t |
109 #define LANG_HOOKS_SET_DECL_ASSEMBLER_NAME lhd_set_decl_assembler_name | 110 #define LANG_HOOKS_SET_DECL_ASSEMBLER_NAME lhd_set_decl_assembler_name |
111 #define LANG_HOOKS_OVERWRITE_DECL_ASSEMBLER_NAME lhd_overwrite_decl_assembler_name | |
110 #define LANG_HOOKS_PRINT_STATISTICS lhd_do_nothing | 112 #define LANG_HOOKS_PRINT_STATISTICS lhd_do_nothing |
111 #define LANG_HOOKS_PRINT_XNODE lhd_print_tree_nothing | 113 #define LANG_HOOKS_PRINT_XNODE lhd_print_tree_nothing |
112 #define LANG_HOOKS_PRINT_DECL lhd_print_tree_nothing | 114 #define LANG_HOOKS_PRINT_DECL lhd_print_tree_nothing |
113 #define LANG_HOOKS_PRINT_TYPE lhd_print_tree_nothing | 115 #define LANG_HOOKS_PRINT_TYPE lhd_print_tree_nothing |
114 #define LANG_HOOKS_PRINT_IDENTIFIER lhd_print_tree_nothing | 116 #define LANG_HOOKS_PRINT_IDENTIFIER lhd_print_tree_nothing |
128 #define LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS NULL | 130 #define LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS NULL |
129 #define LANG_HOOKS_BLOCK_MAY_FALLTHRU hook_bool_const_tree_true | 131 #define LANG_HOOKS_BLOCK_MAY_FALLTHRU hook_bool_const_tree_true |
130 #define LANG_HOOKS_EH_USE_CXA_END_CLEANUP false | 132 #define LANG_HOOKS_EH_USE_CXA_END_CLEANUP false |
131 #define LANG_HOOKS_DEEP_UNSHARING false | 133 #define LANG_HOOKS_DEEP_UNSHARING false |
132 #define LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS false | 134 #define LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS false |
135 #define LANG_HOOKS_EMITS_BEGIN_STMT false | |
133 #define LANG_HOOKS_RUN_LANG_SELFTESTS lhd_do_nothing | 136 #define LANG_HOOKS_RUN_LANG_SELFTESTS lhd_do_nothing |
134 #define LANG_HOOKS_GET_SUBSTRING_LOCATION lhd_get_substring_location | 137 #define LANG_HOOKS_GET_SUBSTRING_LOCATION lhd_get_substring_location |
135 | 138 |
136 /* Attribute hooks. */ | 139 /* Attribute hooks. */ |
137 #define LANG_HOOKS_ATTRIBUTE_TABLE NULL | 140 #define LANG_HOOKS_ATTRIBUTE_TABLE NULL |
308 LANG_HOOKS_MISSING_NORETURN_OK_P, \ | 311 LANG_HOOKS_MISSING_NORETURN_OK_P, \ |
309 LANG_HOOKS_GET_ALIAS_SET, \ | 312 LANG_HOOKS_GET_ALIAS_SET, \ |
310 LANG_HOOKS_FINISH_INCOMPLETE_DECL, \ | 313 LANG_HOOKS_FINISH_INCOMPLETE_DECL, \ |
311 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL, \ | 314 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL, \ |
312 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME, \ | 315 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME, \ |
316 LANG_HOOKS_OVERWRITE_DECL_ASSEMBLER_NAME, \ | |
313 LANG_HOOKS_PRINT_STATISTICS, \ | 317 LANG_HOOKS_PRINT_STATISTICS, \ |
314 LANG_HOOKS_PRINT_XNODE, \ | 318 LANG_HOOKS_PRINT_XNODE, \ |
315 LANG_HOOKS_PRINT_DECL, \ | 319 LANG_HOOKS_PRINT_DECL, \ |
316 LANG_HOOKS_PRINT_TYPE, \ | 320 LANG_HOOKS_PRINT_TYPE, \ |
317 LANG_HOOKS_PRINT_IDENTIFIER, \ | 321 LANG_HOOKS_PRINT_IDENTIFIER, \ |
341 LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS, \ | 345 LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS, \ |
342 LANG_HOOKS_BLOCK_MAY_FALLTHRU, \ | 346 LANG_HOOKS_BLOCK_MAY_FALLTHRU, \ |
343 LANG_HOOKS_EH_USE_CXA_END_CLEANUP, \ | 347 LANG_HOOKS_EH_USE_CXA_END_CLEANUP, \ |
344 LANG_HOOKS_DEEP_UNSHARING, \ | 348 LANG_HOOKS_DEEP_UNSHARING, \ |
345 LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS, \ | 349 LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS, \ |
350 LANG_HOOKS_EMITS_BEGIN_STMT, \ | |
346 LANG_HOOKS_RUN_LANG_SELFTESTS, \ | 351 LANG_HOOKS_RUN_LANG_SELFTESTS, \ |
347 LANG_HOOKS_GET_SUBSTRING_LOCATION \ | 352 LANG_HOOKS_GET_SUBSTRING_LOCATION \ |
348 } | 353 } |
349 | 354 |
350 #endif /* GCC_LANG_HOOKS_DEF_H */ | 355 #endif /* GCC_LANG_HOOKS_DEF_H */ |