From patchwork Sat Dec 11 14:03:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 75195 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 D6F1AB70AA for ; Sun, 12 Dec 2010 01:04:06 +1100 (EST) Received: (qmail 9137 invoked by alias); 11 Dec 2010 14:04:04 -0000 Received: (qmail 9120 invoked by uid 22791); 11 Dec 2010 14:04:03 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_00, 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; Sat, 11 Dec 2010 14:03:59 +0000 Received: from eggs.gnu.org ([140.186.70.92]:52498) by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PRQ3G-0003vI-LZ for gcc-patches@gnu.org; Sat, 11 Dec 2010 09:03:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRQ3A-0004wP-OQ for gcc-patches@gnu.org; Sat, 11 Dec 2010 09:03:57 -0500 Received: from smtp201.iad.emailsrvr.com ([207.97.245.201]:60987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRQ3A-0004uX-M9 for gcc-patches@gnu.org; Sat, 11 Dec 2010 09:03:48 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp40.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 203AC35017E for ; Sat, 11 Dec 2010 09:03:43 -0500 (EST) Received: from dynamic3.wm-web.iad.mlsrvr.com (dynamic3.wm-web.iad1a.rsapps.net [192.168.2.152]) by smtp40.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 0F1EF3501D4 for ; Sat, 11 Dec 2010 09:03:42 -0500 (EST) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic3.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id DBF6A332006E for ; Sat, 11 Dec 2010 09:03:42 -0500 (EST) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Sat, 11 Dec 2010 15:03:42 +0100 (CET) Date: Sat, 11 Dec 2010 15:03:42 +0100 (CET) Subject: libobjc: updated ABI comment From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 X-Type: plain Message-ID: <1292076222.89894463@192.168.2.227> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 Committed to trunk. Thanks Index: objc-private/module-abi-8.h =================================================================== --- objc-private/module-abi-8.h (revision 167709) +++ objc-private/module-abi-8.h (working copy) @@ -47,8 +47,11 @@ categories defined in the module. */ struct objc_symtab { - unsigned long sel_ref_cnt; /* Unknown. */ - SEL refs; /* Unknown. */ + unsigned long sel_ref_cnt; /* Unused (always set to 0). */ + SEL refs; /* The table of selectors referenced in + this module. This is terminated by a + selector with NULL sel_id and NULL + sel_types. */ unsigned short cls_def_cnt; /* Number of classes compiled (defined) in the module. */ unsigned short cat_def_cnt; /* Number of categories compiled Index: ChangeLog =================================================================== --- ChangeLog (revision 167709) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2010-12-11 Nicola Pero + + * objc-private/module-abi-8.h (struct objc_symtab): Updated + description of sel_ref_cnt and refs. + * objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change. + 2010-12-06 Dave Korn PR target/40125 Index: objc/deprecated/struct_objc_symtab.h =================================================================== --- objc/deprecated/struct_objc_symtab.h (revision 167709) +++ objc/deprecated/struct_objc_symtab.h (working copy) @@ -5,8 +5,11 @@ A Symtab contains a variable length array of pointers to classes and categories defined in the module. */ typedef struct objc_symtab { - unsigned long sel_ref_cnt; /* Unknown. */ - SEL refs; /* Unknown. */ + unsigned long sel_ref_cnt; /* Unused (always set to 0). */ + SEL refs; /* The table of selectors referenced in + this module. This is terminated by a + selector with NULL sel_id and NULL + sel_types. */ unsigned short cls_def_cnt; /* Number of classes compiled (defined) in the module. */ unsigned short cat_def_cnt; /* Number of categories