]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/cp/cp-objcp-common.h
Update Copyright years for files modified in 2011 and/or 2012.
[thirdparty/gcc.git] / gcc / cp / cp-objcp-common.h
CommitLineData
5dd72fac 1/* Language hooks common to C++ and ObjC++ front ends.
71e45bc2 2 Copyright (C) 2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012
e88d34f6 3 Free Software Foundation, Inc.
5dd72fac 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
aa139c3f 10Software Foundation; either version 3, or (at your option) any later
5dd72fac 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
aa139c3f 19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
5dd72fac 21
22#ifndef GCC_CP_OBJCP_COMMON
23#define GCC_CP_OBJCP_COMMON
24
5dd72fac 25/* In cp/cp-lang.c and objcp/objcp-lang.c. */
26
183b9a74 27extern tree objcp_tsubst_copy_and_build (tree, tree, tsubst_flags_t,
5dd72fac 28 tree, bool);
29
cb3582e7 30extern bool cp_function_decl_explicit_p (tree decl);
9b88d08d 31extern void cp_common_init_ts (void);
cb3582e7 32
5dd72fac 33/* Lang hooks that are shared between C++ and ObjC++ are defined here. Hooks
34 specific to C++ or ObjC++ go in cp/cp-lang.c and objcp/objcp-lang.c,
35 respectively. */
36
34e5cced 37#undef LANG_HOOKS_FREE_LANG_DATA
38#define LANG_HOOKS_FREE_LANG_DATA cp_free_lang_data
5dd72fac 39#undef LANG_HOOKS_TREE_SIZE
40#define LANG_HOOKS_TREE_SIZE cp_tree_size
41#undef LANG_HOOKS_FINISH
42#define LANG_HOOKS_FINISH cxx_finish
43#undef LANG_HOOKS_CLEAR_BINDING_STACK
44#define LANG_HOOKS_CLEAR_BINDING_STACK pop_everything
e88d34f6 45#undef LANG_HOOKS_OPTION_LANG_MASK
46#define LANG_HOOKS_OPTION_LANG_MASK c_common_option_lang_mask
47#undef LANG_HOOKS_COMPLAIN_WRONG_LANG_P
48#define LANG_HOOKS_COMPLAIN_WRONG_LANG_P c_common_complain_wrong_lang_p
f3f006ad 49#undef LANG_HOOKS_INIT_OPTIONS_STRUCT
50#define LANG_HOOKS_INIT_OPTIONS_STRUCT c_common_init_options_struct
5dd72fac 51#undef LANG_HOOKS_INIT_OPTIONS
52#define LANG_HOOKS_INIT_OPTIONS c_common_init_options
53#undef LANG_HOOKS_INITIALIZE_DIAGNOSTICS
54#define LANG_HOOKS_INITIALIZE_DIAGNOSTICS cxx_initialize_diagnostics
55#undef LANG_HOOKS_HANDLE_OPTION
56#define LANG_HOOKS_HANDLE_OPTION c_common_handle_option
57#undef LANG_HOOKS_HANDLE_FILENAME
58#define LANG_HOOKS_HANDLE_FILENAME c_common_handle_filename
5dd72fac 59#undef LANG_HOOKS_POST_OPTIONS
60#define LANG_HOOKS_POST_OPTIONS c_common_post_options
61#undef LANG_HOOKS_GET_ALIAS_SET
62#define LANG_HOOKS_GET_ALIAS_SET cxx_get_alias_set
5dd72fac 63#undef LANG_HOOKS_PARSE_FILE
64#define LANG_HOOKS_PARSE_FILE c_common_parse_file
65#undef LANG_HOOKS_DUP_LANG_SPECIFIC_DECL
66#define LANG_HOOKS_DUP_LANG_SPECIFIC_DECL cxx_dup_lang_specific_decl
5dd72fac 67#undef LANG_HOOKS_SET_DECL_ASSEMBLER_NAME
68#define LANG_HOOKS_SET_DECL_ASSEMBLER_NAME mangle_decl
5dd72fac 69#undef LANG_HOOKS_PRINT_STATISTICS
70#define LANG_HOOKS_PRINT_STATISTICS cxx_print_statistics
71#undef LANG_HOOKS_PRINT_XNODE
72#define LANG_HOOKS_PRINT_XNODE cxx_print_xnode
601154bb 73#undef LANG_HOOKS_DECL_PRINTABLE_NAME
74#define LANG_HOOKS_DECL_PRINTABLE_NAME cxx_printable_name
5dd72fac 75#undef LANG_HOOKS_PRINT_DECL
76#define LANG_HOOKS_PRINT_DECL cxx_print_decl
77#undef LANG_HOOKS_PRINT_TYPE
78#define LANG_HOOKS_PRINT_TYPE cxx_print_type
79#undef LANG_HOOKS_PRINT_IDENTIFIER
80#define LANG_HOOKS_PRINT_IDENTIFIER cxx_print_identifier
3dac5c5e 81#undef LANG_HOOKS_TYPES_COMPATIBLE_P
82#define LANG_HOOKS_TYPES_COMPATIBLE_P cxx_types_compatible_p
5dd72fac 83#undef LANG_HOOKS_PRINT_ERROR_FUNCTION
84#define LANG_HOOKS_PRINT_ERROR_FUNCTION cxx_print_error_function
85#undef LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL
86#define LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL cxx_warn_unused_global_decl
87#undef LANG_HOOKS_WRITE_GLOBALS
15daca6e 88#define LANG_HOOKS_WRITE_GLOBALS cp_write_global_declarations
54be5d7e 89#undef LANG_HOOKS_BUILTIN_FUNCTION
90#define LANG_HOOKS_BUILTIN_FUNCTION cxx_builtin_function
24470055 91#undef LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE
92#define LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE cxx_builtin_function_ext_scope
743f8dd1 93#undef LANG_HOOKS_TYPE_HASH_EQ
94#define LANG_HOOKS_TYPE_HASH_EQ cxx_type_hash_eq
b75409ba 95#undef LANG_HOOKS_MISSING_NORETURN_OK_P
96#define LANG_HOOKS_MISSING_NORETURN_OK_P cp_missing_noreturn_ok_p
6cb25bec 97#undef LANG_HOOKS_BLOCK_MAY_FALLTHRU
98#define LANG_HOOKS_BLOCK_MAY_FALLTHRU cxx_block_may_fallthru
5dd72fac 99
100/* Attribute hooks. */
101#undef LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
102#define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE c_common_attribute_table
103#undef LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
104#define LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE c_common_format_attribute_table
105#undef LANG_HOOKS_ATTRIBUTE_TABLE
106#define LANG_HOOKS_ATTRIBUTE_TABLE cxx_attribute_table
107
5dd72fac 108#undef LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P
109#define LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P cp_var_mod_type_p
110#undef LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN
111#define LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN cp_dump_tree
112#undef LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN
113#define LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN cp_type_quals
5dd72fac 114
5dd72fac 115#undef LANG_HOOKS_MAKE_TYPE
116#define LANG_HOOKS_MAKE_TYPE cxx_make_type
117#undef LANG_HOOKS_TYPE_FOR_MODE
118#define LANG_HOOKS_TYPE_FOR_MODE c_common_type_for_mode
119#undef LANG_HOOKS_TYPE_FOR_SIZE
120#define LANG_HOOKS_TYPE_FOR_SIZE c_common_type_for_size
5dd72fac 121#undef LANG_HOOKS_INCOMPLETE_TYPE_ERROR
122#define LANG_HOOKS_INCOMPLETE_TYPE_ERROR cxx_incomplete_type_error
123#undef LANG_HOOKS_TYPE_PROMOTES_TO
124#define LANG_HOOKS_TYPE_PROMOTES_TO cxx_type_promotes_to
125#undef LANG_HOOKS_REGISTER_BUILTIN_TYPE
126#define LANG_HOOKS_REGISTER_BUILTIN_TYPE c_register_builtin_type
d991e6e8 127#undef LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE
128#define LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE cp_reconstruct_complex_type
624d37a6 129#undef LANG_HOOKS_TO_TARGET_CHARSET
130#define LANG_HOOKS_TO_TARGET_CHARSET c_common_to_target_charset
5dd72fac 131#undef LANG_HOOKS_GIMPLIFY_EXPR
132#define LANG_HOOKS_GIMPLIFY_EXPR cp_gimplify_expr
cb3582e7 133#undef LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P
134#define LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P cp_function_decl_explicit_p
8487df40 135#undef LANG_HOOKS_OMP_PREDETERMINED_SHARING
136#define LANG_HOOKS_OMP_PREDETERMINED_SHARING cxx_omp_predetermined_sharing
137#undef LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR
138#define LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR cxx_omp_clause_default_ctor
139#undef LANG_HOOKS_OMP_CLAUSE_COPY_CTOR
140#define LANG_HOOKS_OMP_CLAUSE_COPY_CTOR cxx_omp_clause_copy_ctor
141#undef LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP
142#define LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP cxx_omp_clause_assign_op
143#undef LANG_HOOKS_OMP_CLAUSE_DTOR
144#define LANG_HOOKS_OMP_CLAUSE_DTOR cxx_omp_clause_dtor
fd6481cf 145#undef LANG_HOOKS_OMP_FINISH_CLAUSE
146#define LANG_HOOKS_OMP_FINISH_CLAUSE cxx_omp_finish_clause
df2c34fc 147#undef LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE
148#define LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE cxx_omp_privatize_by_reference
5dd72fac 149
471eff36 150#undef LANG_HOOKS_EH_USE_CXA_END_CLEANUP
151#define LANG_HOOKS_EH_USE_CXA_END_CLEANUP true
152
596981c8 153#undef LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS
154#define LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS cp_protect_cleanup_actions
155
5dd72fac 156#endif /* GCC_CP_OBJCP_COMMON */