From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94480 invoked by alias); 27 Sep 2016 12:47:39 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 94467 invoked by uid 89); 27 Sep 2016 12:47:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=H*UA:2.2104, H*x:2.2104, D*codesourcery.com, won X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Sep 2016 12:47:28 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1bornA-0007N3-Qh from Iain_Sandoe@mentor.com ; Tue, 27 Sep 2016 05:47:25 -0700 Received: from [127.0.0.1] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 27 Sep 2016 13:47:20 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [PATCH] objc: update documetation and add test-case of constructor/destructor attr. From: Iain Sandoe In-Reply-To: <57ABE897.9010807@codesourcery.com> Date: Tue, 27 Sep 2016 12:50:00 -0000 CC: GCC Patches , Sandra Loosemore Content-Transfer-Encoding: quoted-printable Message-ID: References: <69d63b26-fc95-fd2d-57fb-c757ac506462@suse.cz> <57ABE897.9010807@codesourcery.com> To: =?utf-8?Q?Martin_Li=C5=A1ka?= X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-SW-Source: 2016-09/txt/msg01966.txt.bz2 > On 10 Aug 2016, at 19:53, Sandra Loosemore wrot= e: >=20 > On 08/10/2016 03:11 AM, Martin Li=C5=A1ka wrote: >> Hi. >>=20 >> Following patch clarifies usage of ctor and dtor attributes for Objectiv= e C. >> Patch survives (on x86_64-linux-gnu): >>=20 >> make -k check-objc RUNTESTFLAGS=3D"execute.exp" >>=20 >> Ready for trunk? >=20 > The documentation fix looks fine, but probably an objc maintainer needs t= o confirm that it's not just an accident that the test case works. Appologies; traveling this week so won=E2=80=99t be able to give this prope= r attention until I get back to the office (Mike might have something to ad= d however). I don=E2=80=99t believe it=E2=80=99s an accident that the test-case works. Objective-C / Objective-C++ are supposed to be supersets of the parent lang= uage, and the test case is pure C compiled with an Objective-C FE (so the u= nderlying C should =E2=80=98just work=E2=80=99). What I don=E2=80=99t expect to be supported is to try to apply that attribu= te to any Objective-C entity (but I would like to qualify that statement wi= th some double-checking once i=E2=80=99m back in the office). thanks, Iain