From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.lisp.guile.devel Subject: SCM_DEBUG and developer builds Date: Sat, 5 Sep 2009 19:49:48 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252194620 12204 80.91.229.12 (5 Sep 2009 23:50:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Sep 2009 23:50:20 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Sep 06 01:50:14 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mk51I-0008DG-HZ for guile-devel@m.gmane.org; Sun, 06 Sep 2009 01:50:13 +0200 Original-Received: from localhost ([127.0.0.1]:41612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mk51G-00067B-TJ for guile-devel@m.gmane.org; Sat, 05 Sep 2009 19:50:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mk519-00066B-UN for guile-devel@gnu.org; Sat, 05 Sep 2009 19:50:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mk514-00065c-HA for guile-devel@gnu.org; Sat, 05 Sep 2009 19:50:02 -0400 Original-Received: from [199.232.76.173] (port=49308 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mk514-00065Y-C9 for guile-devel@gnu.org; Sat, 05 Sep 2009 19:49:58 -0400 Original-Received: from splat.raeburn.org ([69.25.196.39]:53884 helo=raeburn.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mk50w-0004wP-Af for guile-devel@gnu.org; Sat, 05 Sep 2009 19:49:58 -0400 Original-Received: from [10.0.0.172] (squish.raeburn.org [10.0.0.172]) by raeburn.org (8.14.3/8.14.1) with ESMTP id n85Nnm1s025272; Sat, 5 Sep 2009 19:49:49 -0400 (EDT) X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9269 Archived-At: I have a suggestion: Let's set SCM_DEBUG=1 by default for the 1.9.x series. Clearly, it should be easy to disable, for doing performance testing builds or whatever. But having it on by default makes it more likely that we'll catch some kinds of errors sooner. There are a couple of obvious approaches: #1: Modify the default setting in __scm.h. The only issue I'm concerned about is a library built with - DSCM_DEBUG=0 would still install headers that default to setting SCM_DEBUG to 1, thus causing application code to reference symbols like scm_error_pair_access that might not have been compiled in to the library. I'm willing to try to go through and make such symbols always be available, though obviously it means increasing the code size of the installed non-debugging library with debugging code. #2: Add a configure option for setting SCM_DEBUG, instead of setting CPPFLAGS. Have it operate by defining SCM_DEBUG in the guile makefiles, leaving __scm.h (including the installed copy) setting a default of 0. This will avoid inflicting SCM_DEBUG=1 checks on developers using the developer releases... so, that may or may not be desirable.... Thoughts? Ken