diff options
author | Ziemowit Laski <zlaski@apple.com> | 2002-07-02 21:59:34 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2002-07-02 21:59:34 +0000 |
commit | c1c5187c9ee27bbf60a5c237ecbd3667b35bf544 (patch) | |
tree | 4490d49b0ca7ef976a719a92a9be675a3a160306 /gcc/objc | |
parent | aa5661e6b41e781f2e7b6b3e3fc163174f0687a8 (diff) | |
download | gcc-c1c5187c9ee27bbf60a5c237ecbd3667b35bf544.zip gcc-c1c5187c9ee27bbf60a5c237ecbd3667b35bf544.tar.gz gcc-c1c5187c9ee27bbf60a5c237ecbd3667b35bf544.tar.bz2 |
c-parse.in (designator): Enable designated initializers if ObjC.
2002-07-02 Ziemowit Laski <zlaski@apple.com>
* c-parse.in (designator): Enable designated initializers if ObjC.
(objcmessageexpr): Remove references to objc_receiver_context.
* objc/objc-act.h (objc_receiver_context): Remove decl.
* objc/objc-act.c (objc_receiver_context): Remove.
(lookup_objc_ivar): Test objc_method_context instead of
objc_receiver_context.
2002-07-02 Ziemowit Laski <zlaski@apple.com>
* objc.dg/desig-init-1.m: New test.
From-SVN: r55192
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 6 | ||||
-rw-r--r-- | gcc/objc/objc-act.h | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 3909e0c..c0db599 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -341,8 +341,6 @@ static const char *default_constant_string_class_name; /* The OCTI_... enumeration itself is in objc/objc-act.h. */ tree objc_global_trees[OCTI_MAX]; -int objc_receiver_context; - static void handle_impent PARAMS ((struct imp_entry *)); struct imp_entry *imp_list = 0; @@ -8311,8 +8309,8 @@ lookup_objc_ivar (id) { tree decl; - if (objc_receiver_context && !strcmp (IDENTIFIER_POINTER (id), "super")) - /* we have a message to super */ + if (objc_method_context && !strcmp (IDENTIFIER_POINTER (id), "super")) + /* We have a message to super. */ return get_super_receiver (); else if (objc_method_context && (decl = is_ivar (objc_ivar_chain, id))) { diff --git a/gcc/objc/objc-act.h b/gcc/objc/objc-act.h index 17e5bd5..13b3e63 100644 --- a/gcc/objc/objc-act.h +++ b/gcc/objc/objc-act.h @@ -64,8 +64,6 @@ void objc_declare_alias PARAMS ((tree, tree)); void objc_declare_class PARAMS ((tree)); void objc_declare_protocols PARAMS ((tree)); -extern int objc_receiver_context; - /* the following routines are used to implement statically typed objects */ int objc_comptypes PARAMS ((tree, tree, int)); |