diff options
author | zlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-10 02:18:28 +0000 |
---|---|---|
committer | zlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-10 02:18:28 +0000 |
commit | 952e555ed2738f11afb7adeba745991b8a8bf1d2 (patch) | |
tree | 9eae3f190177c258108b75e7081a965f0c60e1f2 /gcc/objc | |
parent | 3645386fa4928c9f9ae81e41ec776277efda5058 (diff) | |
download | gcc-952e555ed2738f11afb7adeba745991b8a8bf1d2.tar.gz |
2002-08-09 Ziemowit Laski <zlaski@apple.com>
* c-common.c (flag_objc): New.
* c-common.h (c_language_kind): Get rid of clk_objective_c
enum value.
(flag_objc): New extern declaration.
* c-decl.c (implicitly_declare): Call objc_check_decl
instead of maybe_objc_check_decl.
(finish_decl): Likewise.
(grokfield): Likewise.
(finish_struct): Likewise.
* c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
(maybe_objc_comptypes): Rename to objc_comptypes.
(maybe_building_objc_message_expr): Rename to
objc_message_selector.
* c-lex.c (lex_charconst): Remove uses of clk_objective_c,
replace with flag_objc as needed.
* c-opts.c (c_common_init_options): Likewise.
(c_common_decode_option): Likewise.
* c-parse.in (init_reswords): Likewise.
* c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
(maybe_objc_comptypes): Rename to objc_comptypes.
(maybe_building_objc_message_expr): Rename to
objc_message_selector.
* c-typeck.c (comptypes): Call objc_comptypes instead of
maybe_objc_comptypes, and/or objc_message_selector instead of
(comp_target_types): Likewise.
(convert_for_assignment): Likewise.
(warn_for_assignment): Likewise.
* cppinit.c (init_builtins): Set __OBJC__ manifest constant
independently of those for other languages.
* objc/objc-act.c (maybe_objc_comptypes): Delete.
(maybe_objc_check_decl): Delete.
(maybe_building_objc_message_expr): Rename to
objc_message_selector.
* objc/objc-lang.c (objc_init_options): Use clk_c instead of
clk_objective_c; set flag_objc flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56173 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 17 | ||||
-rw-r--r-- | gcc/objc/objc-lang.c | 5 |
2 files changed, 4 insertions, 18 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index c16e57c7933..44edf72bec9 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -518,14 +518,6 @@ define_decl (declarator, declspecs) `a' and `b' are the same class type, or `a' and `b' are of class types A and B such that B is a descendant of A. */ -int -maybe_objc_comptypes (lhs, rhs, reflexive) - tree lhs, rhs; - int reflexive; -{ - return objc_comptypes (lhs, rhs, reflexive); -} - static tree lookup_method_in_protocol_list (rproto_list, sel_name, class_meth) tree rproto_list; @@ -764,13 +756,6 @@ objc_check_decl (decl) error_with_decl (decl, "`%s' cannot be statically allocated"); } -void -maybe_objc_check_decl (decl) - tree decl; -{ - objc_check_decl (decl); -} - /* Implement static typing. At this point, we know we have an interface. */ tree @@ -4690,7 +4675,7 @@ receiver_is_class_object (receiver) static tree building_objc_message_expr = 0; tree -maybe_building_objc_message_expr () +objc_message_selector () { return building_objc_message_expr; } diff --git a/gcc/objc/objc-lang.c b/gcc/objc/objc-lang.c index 111428abffd..73e6204c43b 100644 --- a/gcc/objc/objc-lang.c +++ b/gcc/objc/objc-lang.c @@ -162,5 +162,6 @@ const char * const tree_code_name[] = { static void objc_init_options () { - c_common_init_options (clk_objective_c); -} + flag_objc = 1; + c_common_init_options (clk_c); +} |