diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-27 22:31:34 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-27 22:31:34 +0000 |
commit | 78c551ad15a1d280f5f6ac71f60a78b87b856496 (patch) | |
tree | 3c52b3d011b38afeffe23926fc3afa478dd62aa8 /gcc/objc | |
parent | 691b0a39ab31115e163f824d42657a831aacc500 (diff) | |
download | gcc-78c551ad15a1d280f5f6ac71f60a78b87b856496.tar.gz |
* cpphash.c (_cpp_init_hashtable): Update.
* cpphash.h (struct spec_nodes): Remove n_L.
* cpplex.c (_cpp_lex_direct): Check for prefix L separately.
* Makefile.in: Update, and add c-objc-common.o dependencies.
* c-lang.c: Remove unnecessary includes.
(c_init): Move bulk of code to c_objc_common_init, and call it.
(c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
inline_forbidden_p, c_cannot_inline_tree_fn): Move to
c-objc-common.c.
* c-objc-common.c: New. Mostly pulled from c-lang.c.
* c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
c_objc_common_init, c_missing_noreturn_ok_p): New.
* toplev.c: Update comment.
* doc/passes.texi: Update.
* objc/ojbc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
(objc_init): Update to use c_objc_common_init.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47388 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 474df1afdba..2e02b7c9af1 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -468,6 +468,16 @@ static int print_struct_values = 0; #define LANG_HOOKS_PRINT_IDENTIFIER c_print_identifier #undef LANG_HOOKS_SET_YYDEBUG #define LANG_HOOKS_SET_YYDEBUG c_set_yydebug +/* Inlining hooks same as the C front end. */ +#undef LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN +#define LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN \ + c_cannot_inline_tree_fn +#undef LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS +#define LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS \ + c_disregard_inline_limits +#undef LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P +#define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \ + anon_aggr_type_p /* Each front end provides its own. */ const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER; @@ -554,11 +564,9 @@ static const char * objc_init (filename) const char *filename; { - c_init_decl_processing (); + filename = c_objc_common_init (filename); - filename = c_common_init (filename); - - add_c_tree_codes (); + decl_printable_name = objc_printable_name; /* Force the line number back to 0; check_newline will have raised it to 1, which will make the builtin functions appear @@ -8087,14 +8095,6 @@ init_objc () errbuf = (char *)xmalloc (BUFSIZE); hash_init (); synth_module_prologue (); - - /* Change the default error function */ - save_lang_status = &push_c_function_context; - restore_lang_status = &pop_c_function_context; - mark_lang_status = &mark_c_function_context; - decl_printable_name = objc_printable_name; - lang_expand_expr = c_expand_expr; - lang_expand_decl_stmt = c_expand_decl_stmt; } static void |