* doc/generic.texi (ANNOTATE_EXPR): Document 3rd operand.
[official-gcc.git] / gcc / c / c-objc-common.h
blobbee06e9a37ef1fd2b94bbc8db04a5dc312308785
1 /* Language hooks common to C and ObjC front ends.
2 Copyright (C) 2004-2017 Free Software Foundation, Inc.
3 Contributed by Ziemowit Laski <zlaski@apple.com>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #ifndef GCC_C_OBJC_COMMON
22 #define GCC_C_OBJC_COMMON
24 /* Lang hooks that are shared between C and ObjC are defined here. Hooks
25 specific to C or ObjC go in c-lang.c and objc/objc-lang.c, respectively. */
27 #undef LANG_HOOKS_IDENTIFIER_SIZE
28 #define LANG_HOOKS_IDENTIFIER_SIZE C_SIZEOF_STRUCT_LANG_IDENTIFIER
29 #undef LANG_HOOKS_FINISH
30 #define LANG_HOOKS_FINISH c_common_finish
31 #undef LANG_HOOKS_OPTION_LANG_MASK
32 #define LANG_HOOKS_OPTION_LANG_MASK c_common_option_lang_mask
33 #undef LANG_HOOKS_COMPLAIN_WRONG_LANG_P
34 #define LANG_HOOKS_COMPLAIN_WRONG_LANG_P c_common_complain_wrong_lang_p
35 #undef LANG_HOOKS_INIT_OPTIONS_STRUCT
36 #define LANG_HOOKS_INIT_OPTIONS_STRUCT c_common_init_options_struct
37 #undef LANG_HOOKS_INIT_OPTIONS
38 #define LANG_HOOKS_INIT_OPTIONS c_common_init_options
39 #undef LANG_HOOKS_INITIALIZE_DIAGNOSTICS
40 #define LANG_HOOKS_INITIALIZE_DIAGNOSTICS c_initialize_diagnostics
41 #undef LANG_HOOKS_HANDLE_OPTION
42 #define LANG_HOOKS_HANDLE_OPTION c_common_handle_option
43 #undef LANG_HOOKS_POST_OPTIONS
44 #define LANG_HOOKS_POST_OPTIONS c_common_post_options
45 #undef LANG_HOOKS_GET_ALIAS_SET
46 #define LANG_HOOKS_GET_ALIAS_SET c_common_get_alias_set
47 #undef LANG_HOOKS_PARSE_FILE
48 #define LANG_HOOKS_PARSE_FILE c_common_parse_file
49 #undef LANG_HOOKS_FINISH_INCOMPLETE_DECL
50 #define LANG_HOOKS_FINISH_INCOMPLETE_DECL c_finish_incomplete_decl
51 #undef LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL
52 #define LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL c_warn_unused_global_decl
53 #undef LANG_HOOKS_PRINT_IDENTIFIER
54 #define LANG_HOOKS_PRINT_IDENTIFIER c_print_identifier
55 #undef LANG_HOOKS_TYPES_COMPATIBLE_P
56 #define LANG_HOOKS_TYPES_COMPATIBLE_P c_types_compatible_p
57 #undef LANG_HOOKS_MISSING_NORETURN_OK_P
58 #define LANG_HOOKS_MISSING_NORETURN_OK_P c_missing_noreturn_ok_p
59 #undef LANG_HOOKS_BUILTIN_FUNCTION
60 #define LANG_HOOKS_BUILTIN_FUNCTION c_builtin_function
61 #undef LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE
62 #define LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE c_builtin_function_ext_scope
64 /* Attribute hooks. */
65 #undef LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
66 #define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE c_common_attribute_table
67 #undef LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
68 #define LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE c_common_format_attribute_table
70 #undef LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN
71 #define LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN c_dump_tree
73 #undef LANG_HOOKS_TYPE_FOR_MODE
74 #define LANG_HOOKS_TYPE_FOR_MODE c_common_type_for_mode
75 #undef LANG_HOOKS_TYPE_FOR_SIZE
76 #define LANG_HOOKS_TYPE_FOR_SIZE c_common_type_for_size
77 #undef LANG_HOOKS_INCOMPLETE_TYPE_ERROR
78 #define LANG_HOOKS_INCOMPLETE_TYPE_ERROR c_incomplete_type_error
79 #undef LANG_HOOKS_TYPE_PROMOTES_TO
80 #define LANG_HOOKS_TYPE_PROMOTES_TO c_type_promotes_to
81 #undef LANG_HOOKS_REGISTER_BUILTIN_TYPE
82 #define LANG_HOOKS_REGISTER_BUILTIN_TYPE c_register_builtin_type
83 #undef LANG_HOOKS_TO_TARGET_CHARSET
84 #define LANG_HOOKS_TO_TARGET_CHARSET c_common_to_target_charset
85 #undef LANG_HOOKS_EXPR_TO_DECL
86 #define LANG_HOOKS_EXPR_TO_DECL c_expr_to_decl
88 /* The C front end's scoping structure is very different from
89 that expected by the language-independent code; it is best
90 to disable getdecls.
91 This means it must also provide its own write_globals. */
93 #undef LANG_HOOKS_GETDECLS
94 #define LANG_HOOKS_GETDECLS hook_tree_void_null
96 /* Hooks for tree gimplification. */
97 #undef LANG_HOOKS_GIMPLIFY_EXPR
98 #define LANG_HOOKS_GIMPLIFY_EXPR c_gimplify_expr
100 #undef LANG_HOOKS_OMP_PREDETERMINED_SHARING
101 #define LANG_HOOKS_OMP_PREDETERMINED_SHARING c_omp_predetermined_sharing
103 #undef LANG_HOOKS_OMP_CLAUSE_COPY_CTOR
104 #define LANG_HOOKS_OMP_CLAUSE_COPY_CTOR c_omp_clause_copy_ctor
106 #undef LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP
107 #define LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP c_omp_clause_copy_ctor
109 #undef LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P
110 #define LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P c_vla_unspec_p
111 #endif /* GCC_C_OBJC_COMMON */