Commit 25fe8680 by Ziemowit Laski Committed by Ziemowit Laski

[gcc/ChangeLog]

2004-02-06  Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-act.c (build_super_template) the 'class' field of
        'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
        (get_super_receiver): Likewise.

[gcc/libobjc/ChangeLog]
2004-02-06  Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-api.h (objc_super): The 'class' field shall
        be named 'super_class' #ifdef __cplusplus.

From-SVN: r77430
parent eee54836
2004-02-06 Ziemowit Laski <zlaski@apple.com>
* objc/objc-act.c (build_super_template) the 'class' field of
'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
(get_super_receiver): Likewise.
2004-02-06 Kazu Hirata <kazu@cs.umass.edu> 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
* reload1.c (check_eliminable_occurrences): Optimize the reset * reload1.c (check_eliminable_occurrences): Optimize the reset
......
...@@ -4344,11 +4344,19 @@ build_super_template (void) ...@@ -4344,11 +4344,19 @@ build_super_template (void)
field_decl = grokfield (field_decl, decl_specs, NULL_TREE); field_decl = grokfield (field_decl, decl_specs, NULL_TREE);
field_decl_chain = field_decl; field_decl_chain = field_decl;
#ifdef OBJCPLUS
/* struct objc_class *super_class; */
#else
/* struct objc_class *class; */ /* struct objc_class *class; */
#endif
decl_specs = get_identifier (UTAG_CLASS); decl_specs = get_identifier (UTAG_CLASS);
decl_specs = build_tree_list (NULL_TREE, xref_tag (RECORD_TYPE, decl_specs)); decl_specs = build_tree_list (NULL_TREE, xref_tag (RECORD_TYPE, decl_specs));
#ifdef OBJCPLUS
field_decl = build1 (INDIRECT_REF, NULL_TREE, get_identifier ("super_class"));
#else
field_decl = build1 (INDIRECT_REF, NULL_TREE, get_identifier ("class")); field_decl = build1 (INDIRECT_REF, NULL_TREE, get_identifier ("class"));
#endif
field_decl = grokfield (field_decl, decl_specs, NULL_TREE); field_decl = grokfield (field_decl, decl_specs, NULL_TREE);
chainon (field_decl_chain, field_decl); chainon (field_decl_chain, field_decl);
...@@ -7883,7 +7891,11 @@ get_super_receiver (void) ...@@ -7883,7 +7891,11 @@ get_super_receiver (void)
/* Set class to begin searching. */ /* Set class to begin searching. */
super_expr = build_component_ref (UOBJC_SUPER_decl, super_expr = build_component_ref (UOBJC_SUPER_decl,
#ifdef OBJCPLUS
get_identifier ("super_class"));
#else
get_identifier ("class")); get_identifier ("class"));
#endif
if (TREE_CODE (objc_implementation_context) == CLASS_IMPLEMENTATION_TYPE) if (TREE_CODE (objc_implementation_context) == CLASS_IMPLEMENTATION_TYPE)
{ {
......
2004-02-06 Ziemowit Laski <zlaski@apple.com>
* objc/objc-api.h (objc_super): The 'class' field shall
be named 'super_class' #ifdef __cplusplus.
2004-01-17 Andrew Pinski <pinskia@physics.uc.edu> 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
PR target/10781 PR target/10781
......
...@@ -342,7 +342,11 @@ typedef struct objc_category { ...@@ -342,7 +342,11 @@ typedef struct objc_category {
typedef struct objc_super { typedef struct objc_super {
id self; /* Id of the object sending id self; /* Id of the object sending
the message. */ the message. */
#ifdef __cplusplus
Class super_class;
#else
Class class; /* Object's super class. */ Class class; /* Object's super class. */
#endif
} Super, *Super_t; } Super, *Super_t;
IMP objc_msg_lookup_super(Super_t super, SEL sel); IMP objc_msg_lookup_super(Super_t super, SEL sel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment