From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: bootstrap problem with union Lisp_Object Date: Thu, 8 Dec 2005 03:59:37 -0500 Message-ID: References: <55DA5764-DDB6-4858-9CE2-065857CDC863@gnu.org> <3AFF0594-F842-4079-9A3B-D1CF7358A281@raeburn.org> <0D268F0D-B278-4307-86E3-E0FCE7A3B57B@raeburn.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134043923 2317 80.91.229.2 (8 Dec 2005 12:12:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2005 12:12:03 +0000 (UTC) Cc: schwab@suse.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 08 13:11:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EkKcq-0001v5-3m for ged-emacs-devel@m.gmane.org; Thu, 08 Dec 2005 13:11:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkKd2-0006ar-2X for ged-emacs-devel@m.gmane.org; Thu, 08 Dec 2005 07:12:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkHdX-00082X-Vg for emacs-devel@gnu.org; Thu, 08 Dec 2005 04:00:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkHdR-00081k-Pu for emacs-devel@gnu.org; Thu, 08 Dec 2005 04:00:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkHdM-00081a-Qe for emacs-devel@gnu.org; Thu, 08 Dec 2005 04:00:13 -0500 Original-Received: from [63.240.77.83] (helo=sccrmhc13.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EkHeJ-0006G8-Ay; Thu, 08 Dec 2005 04:01:11 -0500 Original-Received: from raeburn.org (c-65-96-168-237.hsd1.ma.comcast.net[65.96.168.237]) by comcast.net (sccrmhc13) with ESMTP id <20051208085951013003fqlje>; Thu, 8 Dec 2005 08:59:51 +0000 Original-Received: from [18.101.0.226] (laptop.raeburn.org [18.101.0.226]) by raeburn.org (8.12.11/8.12.11) with ESMTP id jB88xnV3027886; Thu, 8 Dec 2005 03:59:49 -0500 (EST) In-Reply-To: Original-To: rms@gnu.org X-Mailer: Apple Mail (2.746.2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:47220 Archived-At: On Dec 7, 2005, at 23:54, Richard M. Stallman wrote: > If people think this is a good idea, I could start changing those > macros that use eassert (XSET, XCONS, XVECTOR, ...) to have GCC > and > non-GCC versions, with the GCC versions using statement > expressions > (inline functions wouldn't preserve the file and line number) and > temporary variables, and error out if ENABLE_CHECKING is > defined but > GCC isn't used. Should be straightforward, about a dozen > places or > so to change I think. > > Is this really necessary now? I hope not. No, but without such a thing -- or some other approach like replacing some of these macros with functions -- the ENABLE_CHECKING version of these macros will evaluate arguments more than once. As far as I know, most if not all of the actual uses are cases where this doesn't cause much trouble except perhaps for performance. Ken