From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Evans Newsgroups: gmane.lisp.guile.devel Subject: GC_VERSION_ALPHA or GC_MICRO_VERSION? Date: Sat, 7 Jun 2014 09:21:46 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1402158118 9882 80.91.229.3 (7 Jun 2014 16:21:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Jun 2014 16:21:58 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jun 07 18:21:53 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WtJNQ-0004NE-3G for guile-devel@m.gmane.org; Sat, 07 Jun 2014 18:21:52 +0200 Original-Received: from localhost ([::1]:52362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtJNP-0003YS-LX for guile-devel@m.gmane.org; Sat, 07 Jun 2014 12:21:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtJNN-0003YJ-2D for guile-devel@gnu.org; Sat, 07 Jun 2014 12:21:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtJNM-00007a-30 for guile-devel@gnu.org; Sat, 07 Jun 2014 12:21:49 -0400 Original-Received: from mail-yh0-x233.google.com ([2607:f8b0:4002:c01::233]:36232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtJNL-00007O-VS for guile-devel@gnu.org; Sat, 07 Jun 2014 12:21:48 -0400 Original-Received: by mail-yh0-f51.google.com with SMTP id f73so1436309yha.24 for ; Sat, 07 Jun 2014 09:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PodB3QLw+M78XT75ohGABo+ch0pgO/bGsdQMLir0MaM=; b=wWv5Z4TTSxgfAVZpjIrH4PnMKcB28AfbNLX9FLdGq+HytJjbExY0ZRcUnjrVttkR98 uekhD7vFxcP4n/VbIo84bPsJd8i8U62Wiend1TbaSRDFXkiw0Tg1CV1Z6tRmqush8G9G 1dWfgKgyvT0eA+u3Pn1XwjurH8Hp7KwT6jQGQCksQXWajHqagHp2TVD8Sv+rL/tJabv7 WMk5bprT6ZsuiTYM9vlO9Xlpr2sGM9B3upbc7NPL9/gSkRmGu5PAt16oo0EbqApU8W3d LTRllSkCb9ecRHpkLb33qWL2CgLrFG9BjmFcV/8s5L+ylrOFVrR66fcrjp2k7HMGlvvA rH2A== X-Received: by 10.236.152.2 with SMTP id c2mr2306937yhk.25.1402158106908; Sat, 07 Jun 2014 09:21:46 -0700 (PDT) Original-Received: by 10.170.150.70 with HTTP; Sat, 7 Jun 2014 09:21:46 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::233 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17189 Archived-At: Hi. I was looking into the libgc 7.4.0 "GC_MARKERS" bug, and found that the workaround in Guile is using GC_ALPHA_VERSION which I can't find in the bdwgc git tree, but I can find GC_VERSION_MICRO. Since undefined preprocessor macros evaluate to zero this test will pass for any 7.4.x. #if (GC_VERSION_MAJOR == 7 && GC_VERSION_MINOR == 4 \ && GC_ALPHA_VERSION == 0) /* BDW-GC 7.4.0 has a bug making it loop indefinitely when using more than one marker thread: . Work around it by asking for one marker thread. */ setenv ("GC_MARKERS", "1", 1); #endif