diff options
| author | Ziemowit Laski <zlaski@apple.com> | 2004-10-26 18:39:01 +0000 |
|---|---|---|
| committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2004-10-26 18:39:01 +0000 |
| commit | 38285932eaf2c4188d348bffbed500389bcc1c34 (patch) | |
| tree | fece3da7ba60683adc5c4817394fddabf4291c66 /gcc/objc/objc-act.c | |
| parent | c5e1045b30758f8ccec2c5b11d606fd761458b0e (diff) | |
| download | gcc-38285932eaf2c4188d348bffbed500389bcc1c34.zip gcc-38285932eaf2c4188d348bffbed500389bcc1c34.tar.gz gcc-38285932eaf2c4188d348bffbed500389bcc1c34.tar.bz2 | |
objc-act.c (finish_class): Do not synthesize bogus 'extern objc_object *_Foo;' declarations for @interface Foo.
[gcc/objc/ChangeLog]
2004-10-26 Ziemowit Laski <zlaski@apple.com>
* objc-act.c (finish_class): Do not synthesize bogus
'extern objc_object *_Foo;' declarations for @interface Foo.
[gcc/testsuite/ChangeLog]
2004-10-26 Ziemowit Laski <zlaski@apple.com>
* objc.dg/super-class-3.m: New test.
From-SVN: r89601
Diffstat (limited to 'gcc/objc/objc-act.c')
| -rw-r--r-- | gcc/objc/objc-act.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 21b279d..7b21ede 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -6896,23 +6896,6 @@ finish_class (tree class) IDENTIFIER_POINTER (CLASS_SUPER_NAME (objc_implementation_context))); } } - - else if (TREE_CODE (class) == CLASS_INTERFACE_TYPE) - { - tree decl; - const char *class_name = IDENTIFIER_POINTER (CLASS_NAME (class)); - char *string = (char *) alloca (strlen (class_name) + 3); - - /* extern struct objc_object *_<my_name>; */ - - sprintf (string, "_%s", class_name); - - decl = build_decl (VAR_DECL, get_identifier (string), - build_pointer_type (objc_object_reference)); - DECL_EXTERNAL (decl) = 1; - lang_hooks.decls.pushdecl (decl); - finish_decl (decl, NULL_TREE, NULL_TREE); - } } static tree |
