]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-objc-common.h
i386.c (ix86_eax_live_at_start_p): Use df_get_live_out.
[thirdparty/gcc.git] / gcc / c-objc-common.h
CommitLineData
9a4d6480 1/* Language hooks common to C and ObjC front ends.
a4de48bc 2 Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9a4d6480
ZL
3 Contributed by Ziemowit Laski <zlaski@apple.com>
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 2, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING. If not, write to the Free
366ccddb
KC
19Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
2002110-1301, USA. */
9a4d6480
ZL
21
22#ifndef GCC_C_OBJC_COMMON
23#define GCC_C_OBJC_COMMON
24
25/* In c-objc-common.c. */
26extern void c_initialize_diagnostics (diagnostic_context *);
27
28/* Lang hooks that are shared between C and ObjC are defined here. Hooks
29 specific to C or ObjC go in c-lang.c and objc/objc-lang.c, respectively. */
30
31#undef LANG_HOOKS_IDENTIFIER_SIZE
32#define LANG_HOOKS_IDENTIFIER_SIZE C_SIZEOF_STRUCT_LANG_IDENTIFIER
33#undef LANG_HOOKS_FINISH
34#define LANG_HOOKS_FINISH c_common_finish
35#undef LANG_HOOKS_INIT_OPTIONS
36#define LANG_HOOKS_INIT_OPTIONS c_common_init_options
37#undef LANG_HOOKS_INITIALIZE_DIAGNOSTICS
38#define LANG_HOOKS_INITIALIZE_DIAGNOSTICS c_initialize_diagnostics
39#undef LANG_HOOKS_HANDLE_OPTION
40#define LANG_HOOKS_HANDLE_OPTION c_common_handle_option
41#undef LANG_HOOKS_MISSING_ARGUMENT
42#define LANG_HOOKS_MISSING_ARGUMENT c_common_missing_argument
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_EXPAND_EXPR
48#define LANG_HOOKS_EXPAND_EXPR c_expand_expr
49#undef LANG_HOOKS_EXPAND_DECL
50#define LANG_HOOKS_EXPAND_DECL c_expand_decl
51#undef LANG_HOOKS_MARK_ADDRESSABLE
52#define LANG_HOOKS_MARK_ADDRESSABLE c_mark_addressable
53#undef LANG_HOOKS_PARSE_FILE
54#define LANG_HOOKS_PARSE_FILE c_common_parse_file
9a4d6480
ZL
55#undef LANG_HOOKS_FINISH_INCOMPLETE_DECL
56#define LANG_HOOKS_FINISH_INCOMPLETE_DECL c_finish_incomplete_decl
57#undef LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS
58#define LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS true
270c60bb
DB
59#undef LANG_HOOKS_STATICP
60#define LANG_HOOKS_STATICP c_staticp
9a4d6480
ZL
61#undef LANG_HOOKS_NO_BODY_BLOCKS
62#define LANG_HOOKS_NO_BODY_BLOCKS true
63#undef LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL
64#define LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL c_warn_unused_global_decl
65#undef LANG_HOOKS_PRINT_IDENTIFIER
66#define LANG_HOOKS_PRINT_IDENTIFIER c_print_identifier
65958285
ZL
67#undef LANG_HOOKS_TYPES_COMPATIBLE_P
68#define LANG_HOOKS_TYPES_COMPATIBLE_P c_types_compatible_p
9a4d6480
ZL
69#undef LANG_HOOKS_FUNCTION_ENTER_NESTED
70#define LANG_HOOKS_FUNCTION_ENTER_NESTED c_push_function_context
71#undef LANG_HOOKS_FUNCTION_LEAVE_NESTED
72#define LANG_HOOKS_FUNCTION_LEAVE_NESTED c_pop_function_context
73#undef LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P
74#define LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P c_missing_noreturn_ok_p
75#undef LANG_HOOKS_DUP_LANG_SPECIFIC_DECL
76#define LANG_HOOKS_DUP_LANG_SPECIFIC_DECL c_dup_lang_specific_decl
c79efc4d
RÁE
77#undef LANG_HOOKS_BUILTIN_FUNCTION
78#define LANG_HOOKS_BUILTIN_FUNCTION c_builtin_function
9a4d6480
ZL
79
80/* Attribute hooks. */
81#undef LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
82#define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE c_common_attribute_table
83#undef LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
84#define LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE c_common_format_attribute_table
85
86#undef LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN
87#define LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN \
88 c_cannot_inline_tree_fn
89#undef LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS
90#define LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS \
91 c_disregard_inline_limits
9a4d6480
ZL
92#undef LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING
93#define LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING \
94 c_convert_parm_for_inlining
95#undef LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN
96#define LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN c_dump_tree
97
98#undef LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION
99#define LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION c_expand_body
100
101#undef LANG_HOOKS_TYPE_FOR_MODE
102#define LANG_HOOKS_TYPE_FOR_MODE c_common_type_for_mode
103#undef LANG_HOOKS_TYPE_FOR_SIZE
104#define LANG_HOOKS_TYPE_FOR_SIZE c_common_type_for_size
9a4d6480
ZL
105#undef LANG_HOOKS_INCOMPLETE_TYPE_ERROR
106#define LANG_HOOKS_INCOMPLETE_TYPE_ERROR c_incomplete_type_error
107#undef LANG_HOOKS_TYPE_PROMOTES_TO
108#define LANG_HOOKS_TYPE_PROMOTES_TO c_type_promotes_to
109#undef LANG_HOOKS_REGISTER_BUILTIN_TYPE
110#define LANG_HOOKS_REGISTER_BUILTIN_TYPE c_register_builtin_type
c5ff069d
ZW
111#undef LANG_HOOKS_TO_TARGET_CHARSET
112#define LANG_HOOKS_TO_TARGET_CHARSET c_common_to_target_charset
73f397d4
JM
113#undef LANG_HOOKS_EXPR_TO_DECL
114#define LANG_HOOKS_EXPR_TO_DECL c_expr_to_decl
9a4d6480
ZL
115
116/* The C front end's scoping structure is very different from
117 that expected by the language-independent code; it is best
118 to disable getdecls.
119 This means it must also provide its own write_globals. */
120
121#undef LANG_HOOKS_GETDECLS
122#define LANG_HOOKS_GETDECLS lhd_return_null_tree_v
123#undef LANG_HOOKS_WRITE_GLOBALS
124#define LANG_HOOKS_WRITE_GLOBALS c_write_global_declarations
125
126/* Hooks for tree gimplification. */
127#undef LANG_HOOKS_GIMPLIFY_EXPR
128#define LANG_HOOKS_GIMPLIFY_EXPR c_gimplify_expr
129
953ff289
DN
130#undef LANG_HOOKS_OMP_PREDETERMINED_SHARING
131#define LANG_HOOKS_OMP_PREDETERMINED_SHARING c_omp_predetermined_sharing
132
52ffd86e
MS
133#undef LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P
134#define LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P c_vla_unspec_p
135
9a4d6480 136#endif /* GCC_C_OBJC_COMMON */