From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Finding objects on C stack - alternate GCPRO Date: Wed, 16 Nov 2011 11:19:32 -0700 Message-ID: References: <4EC38B72.1000101@yandex.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321472323 8884 80.91.229.12 (16 Nov 2011 19:38:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Nov 2011 19:38:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 16 20:38:39 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RQlJd-0007uF-Pv for ged-emacs-devel@m.gmane.org; Wed, 16 Nov 2011 20:38:37 +0100 Original-Received: from localhost ([::1]:56825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQlJd-0001Ku-CE for ged-emacs-devel@m.gmane.org; Wed, 16 Nov 2011 14:38:37 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQlJa-0001Kn-RI for emacs-devel@gnu.org; Wed, 16 Nov 2011 14:38:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQlJZ-00053M-IB for emacs-devel@gnu.org; Wed, 16 Nov 2011 14:38:34 -0500 Original-Received: from mx1.redhat.com ([209.132.183.28]:1125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQlJZ-000534-BE for emacs-devel@gnu.org; Wed, 16 Nov 2011 14:38:33 -0500 Original-Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pAGJcKYG028744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Nov 2011 14:38:31 -0500 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pAGIJYTJ026109; Wed, 16 Nov 2011 13:19:34 -0500 Original-Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id pAGIJWFN023605; Wed, 16 Nov 2011 13:19:33 -0500 X-Attribution: Tom In-Reply-To: <4EC38B72.1000101@yandex.ru> (Dmitry Antipov's message of "Wed, 16 Nov 2011 14:07:46 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 209.132.183.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146063 Archived-At: >>>>> "Dmitry" == Dmitry Antipov writes: Dmitry> Everyone agrees that GGPROs are ugly and painful. [...] Dmitry> But there is another method to implement GCPROs. If you really want GCPROs, you could write a GCC plugin to verify that they are in all the right places. This would work for all the code that isn't platform-specific anyway. Writing a GCC plugin to do custom checks like this is pretty easy nowadays, you could do it in less than a day. I tend to think that GCPRO is worse than conservative marking. What advantage does GCPRO have? Tom