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