From patchwork Fri Jun 3 19:57:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 98645 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9D07BB6FAA for ; Sat, 4 Jun 2011 05:58:11 +1000 (EST) Received: (qmail 5054 invoked by alias); 3 Jun 2011 19:58:10 -0000 Received: (qmail 5046 invoked by uid 22791); 3 Jun 2011 19:58:09 -0000 X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL, BAYES_50, SARE_SUB_ENC_UTF8, TW_BJ, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Jun 2011 19:57:55 +0000 Received: from eggs.gnu.org ([140.186.70.92]:47099) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QSaVH-0002DB-0c for gcc-patches@gnu.org; Fri, 03 Jun 2011 15:57:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSaVF-00049y-Fs for gcc-patches@gnu.org; Fri, 03 Jun 2011 15:57:54 -0400 Received: from smtp191.iad.emailsrvr.com ([207.97.245.191]:49800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSaVF-00049m-CA for gcc-patches@gnu.org; Fri, 03 Jun 2011 15:57:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp29.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 45DA6148B3A for ; Fri, 3 Jun 2011 15:57:52 -0400 (EDT) Received: from dynamic13.wm-web.iad.mlsrvr.com (dynamic13.wm-web.iad1a.rsapps.net [192.168.2.220]) by smtp29.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 2B5D2148B38 for ; Fri, 3 Jun 2011 15:57:52 -0400 (EDT) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic13.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 188DE3218001 for ; Fri, 3 Jun 2011 15:57:52 -0400 (EDT) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Fri, 3 Jun 2011 21:57:52 +0200 (CEST) Date: Fri, 3 Jun 2011 21:57:52 +0200 (CEST) Subject: =?utf-8?Q?libobjc=3A_remove_deprecated_API_=28patch_10=29?= From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 X-Type: plain Message-ID: <1307131072.099427191@www2.webmail.us> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 207.97.245.191 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This patch removes another couple of deprecated header fragments. Note that this starts to remove pieces of the Traditional API, which will be entirely removed in GCC 4.7.0. Of course, that requires switching all testcases to use the Modern API when compiling for the GNU runtime, but we'll get there. ;-) Committed to trunk. Thanks Index: Makefile.in =================================================================== --- Makefile.in (revision 174617) +++ Makefile.in (working copy) @@ -130,7 +130,6 @@ MetaClass.h \ Object.h \ Protocol.h \ - objc_get_uninstalled_dtable.h \ objc_msg_sendv.h \ struct_objc_category.h \ struct_objc_class.h \ @@ -142,7 +141,6 @@ struct_objc_protocol.h \ struct_objc_protocol_list.h \ struct_objc_selector.h \ - struct_objc_static_instances.h \ struct_objc_symtab.h # Objective-C source files to compile Index: ChangeLog =================================================================== --- ChangeLog (revision 174617) +++ ChangeLog (working copy) @@ -1,5 +1,14 @@ 2011-06-03 Nicola Pero + * Makefile.in (OBJC_DEPRECATED_H): Removed struct_objc_static_instances.h + and objc_get_uninstalled_dtable.h. + * objc/deprecated/struct_objc_static_instances.h: Removed. + * objc/deprecated/objc_get_uninstalled_dtable.h: Removed. + * objc/objc-api.h: Do not include deprecated/objc_static_instances.h + and deprecated/objc_get_uninstalled_dtable.h. + +2011-06-03 Nicola Pero + * Makefile.in (OBJC_DEPRECATED_H): Removed objc_object_alloc.h. * objc/deprecated/objc_object_alloc.h: Removed. * objc/objc-api.h: Do not include deprecated/objc_object_alloc.h. Index: objc/deprecated/objc_get_uninstalled_dtable.h =================================================================== --- objc/deprecated/objc_get_uninstalled_dtable.h (revision 174593) +++ objc/deprecated/objc_get_uninstalled_dtable.h (working copy) @@ -1,2 +0,0 @@ -objc_EXPORT struct sarray* -objc_get_uninstalled_dtable(void); Index: objc/deprecated/struct_objc_static_instances.h =================================================================== --- objc/deprecated/struct_objc_static_instances.h (revision 174593) +++ objc/deprecated/struct_objc_static_instances.h (working copy) @@ -1,14 +0,0 @@ -/* For every class which happens to have statically allocated instances in - this module, one OBJC_STATIC_INSTANCES is allocated by the compiler. - INSTANCES is NULL terminated and points to all statically allocated - instances of this class. */ -struct objc_static_instances -{ - char *class_name; -#ifdef __cplusplus - id instances[1]; -#else - id instances[0]; -#endif -}; - Index: objc/objc-api.h =================================================================== --- objc/objc-api.h (revision 174617) +++ objc/objc-api.h (working copy) @@ -104,7 +104,6 @@ equivalent to "*". */ #define _C_ATOM '%' -#include "deprecated/struct_objc_static_instances.h" #include "deprecated/struct_objc_symtab.h" #include "deprecated/struct_objc_module.h" #include "deprecated/struct_objc_ivar.h" @@ -385,8 +384,6 @@ && !object_is_class (object)); } -#include "deprecated/objc_get_uninstalled_dtable.h" - #ifdef __cplusplus } #endif /* __cplusplus */