From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#15739: Doesn't support clang as well as it could. Date: Fri, 01 Nov 2013 18:00:23 -0400 Message-ID: <87ob63ok94.fsf@netris.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383343394 16834 80.91.229.3 (1 Nov 2013 22:03:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Nov 2013 22:03:14 +0000 (UTC) Cc: 15739-done@debbugs.gnu.org To: Matt Sicker Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Nov 01 23:03:18 2013 Return-path: Envelope-to: guile-bugs@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 1VcMoH-0002Tt-EN for guile-bugs@m.gmane.org; Fri, 01 Nov 2013 23:03:17 +0100 Original-Received: from localhost ([::1]:39960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcMoH-0004JU-1B for guile-bugs@m.gmane.org; Fri, 01 Nov 2013 18:03:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcMo8-0004IP-EP for bug-guile@gnu.org; Fri, 01 Nov 2013 18:03:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcMo2-0006Ks-JH for bug-guile@gnu.org; Fri, 01 Nov 2013 18:03:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcMo2-0006Kn-GN for bug-guile@gnu.org; Fri, 01 Nov 2013 18:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VcMo2-0005ze-4p for bug-guile@gnu.org; Fri, 01 Nov 2013 18:03:02 -0400 Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Fri, 01 Nov 2013 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15739 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 15739@debbugs.gnu.org, mhw@netris.org, boards@gmail.com Original-Received: via spool by 15739-done@debbugs.gnu.org id=D15739.138334332422964 (code D ref 15739); Fri, 01 Nov 2013 22:03:01 +0000 Original-Received: (at 15739-done) by debbugs.gnu.org; 1 Nov 2013 22:02:04 +0000 Original-Received: from localhost ([127.0.0.1]:58213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VcMn5-0005yK-HM for submit@debbugs.gnu.org; Fri, 01 Nov 2013 18:02:03 -0400 Original-Received: from world.peace.net ([96.39.62.75]:60078 ident=hope5) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VcMn3-0005xv-DE for 15739-done@debbugs.gnu.org; Fri, 01 Nov 2013 18:02:01 -0400 Original-Received: from turntable.mit.edu ([18.160.0.29] helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VcMmw-0000vb-By; Fri, 01 Nov 2013 18:01:54 -0400 In-Reply-To: (Matt Sicker's message of "Sun, 27 Oct 2013 17:10:24 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7329 Archived-At: Hi Matt, Matt Sicker writes: > I noticed that clang reports to be GCC version 4.2, so most of what I > thought might be wrong wasn't. Therefore, the patch was far easier and > smaller than I expected. This isn't too high a priority, but it does > add support for clang where the code would normally check for GCC > 4.3+. Clang even supports C++ static_assert supposedly, so there's a > check for that as well. > > -- > Matt Sicker > > > From 2b02509f53a247784b4bb0be96061e46b53b0c4e Mon Sep 17 00:00:00 2001 > From: Matt Sicker > Date: Sun, 27 Oct 2013 16:54:06 -0500 > Subject: [PATCH] Updated a couple compiler checks to support clang. > > * lib/poll.c [__clang__]: Same functionality as GCC 4.3+ for ignoring > the (nfd < 0) tests. > * lib/verify.h [__has_feature(c_static_assert)]: Enables > _GL_HAVE__STATIC_ASSERT when clang feature is available for C. > * lib/verify.h [__has_feature(cxx_static_assert)]: Enables > * _GL_HAVE_STATIC_ASSERT when clang feature is available for C++. Both of these files are part of gnulib. As a matter of policy, we do not change those files in our repository. Instead we update from gnulib's repository from time to time. Can you please send this problem report and patch to ? I'm closing this bug, since there's nothing for us to do in Guile. If you find any clang-related problems in Guile itself, please let us know. Thanks, Mark