Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 17381) by debbugs.gnu.org; 2 May 2014 06:11:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 02 02:11:28 2014 Received: from localhost ([127.0.0.1]:47872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Wg6gw-0004Mj-Ix for submit <at> debbugs.gnu.org; Fri, 02 May 2014 02:11:27 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:47137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eggert@HIDDEN>) id 1Wg6gn-0004M2-Ke; Fri, 02 May 2014 02:11:20 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6B944A60049; Thu, 1 May 2014 23:11:11 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uYzbHjlCoa6o; Thu, 1 May 2014 23:11:07 -0700 (PDT) Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id F302039E8014; Thu, 1 May 2014 23:11:06 -0700 (PDT) Message-ID: <536336FA.8020109@HIDDEN> Date: Thu, 01 May 2014 23:11:06 -0700 From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Aharon Robbins <arnold@HIDDEN>, 17381 <at> debbugs.gnu.org Subject: Re: bug#17381: _GL_ATTRIBUTE_PURE in dfa.h References: <201405010619.s416JeNl020893@HIDDEN> <5361EAD7.7040507@HIDDEN> <201405011829.s41IThl8004128@HIDDEN> In-Reply-To: <201405011829.s41IThl8004128@HIDDEN> Content-Type: multipart/mixed; boundary="------------030302090000050300070904" X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17381 Cc: 17072 <at> debbugs.gnu.org, 17157 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.0 (---) This is a multi-part message in MIME format. --------------030302090000050300070904 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 05/01/2014 11:29 AM, Aharon Robbins wrote: > custom.h is for system customization to override things that Autoconf > can't figure out or gets wrong OK, it's easy to have something else include mbsupport.h instead. config.h, say. The attached patch does that. It doesn't really matter what includes it, so long as it's done before dfa.c and dfa.h start using the multibyte functions. > Requiring gnulib in that header makes it less attractive to other > projects that might want to use dfa as a black box. Are there such? I > don't know. (I thought I'd heard something about gettext using dfa but > I am unsure if that is true.) gettext uses gnulib, so that's not an issue. > Does the GL_PURE stuff have to be on every declaration? Or can it just > be on the body? It should be on the declaration for external functions, so that the function's caller knows to optimize it. > What does it even mean It means the function has no effects except the return value and that the return value depends only on the parameters and/or global variables. > Does whatever optimization it enables *really* make a big difference, > or is it just a micro-optimization? We put it in because GCC nowadays complains if we leave it out, if we configure with --enable-gcc-warnings. The optimization seems to be a win in general and (more important) an aid for humans reading the code, so we typically just add the pure attribute and move on. > Yes, I know. I am unsure if your patch, which totally eliminates the > ability to compile gawk on systems without multibyte support It's not supposed to do that. It's supposed to work on those hosts, by supplying substitutes for wchar_t, wctype_t, etc. Hmm, are you worried about hosts that don't even have wchar.h and wctype.h? If so, that can be worked around reasonably easily; please see attached patch. > I just looked at the patch again. It really doesn't do the trick; > there are lots of places where MBS_SUPPORT is checked in the gawk code > and pulling mbsupport.h out of awk.h is likely to break things No, it should still work. With the revised patch, config.h includes mbsupport.h, so MBS_SUPPORT will be defined appropriately for gawk code and gawk's other MBS_SUPPORT usages will continue to work as before. I'll CC: this to Bug#17157 and Bug#17072 as it's following up to the last messages in both those threads, too. --------------030302090000050300070904 Content-Type: text/plain; charset=UTF-8; name="0001-awk-simplify-dfa.c-by-having-it-not-include-mbsuppor.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename*0="0001-awk-simplify-dfa.c-by-having-it-not-include-mbsuppor.pa"; filename*1="tch" RnJvbSBmNjExMmFjYTQxZWE4YmQyMDI4ZWE1YjAwYTNhNzVkYjE0YTMyZWVmIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUaHUsIDEgTWF5IDIwMTQgMjM6MDk6MDAgLTA3MDAKU3ViamVjdDogW1BBVENI XSBhd2s6IHNpbXBsaWZ5IGRmYS5jIGJ5IGhhdmluZyBpdCBub3QgaW5jbHVkZSBtYnN1cHBv cnQuaAogZGlyZWN0bHkKClRoaXMgc3luY3MgZGZhLmMgYmV0dGVyIHdpdGggJ2dyZXAnLgoq IE1ha2VmaWxlLmFtIChTVERCT09MX0gsIFdDSEFSX0gsIFdDVFlQRV9IKTogTmV3IG1hY3Jv cy4KKCQoZ2F3a19PQkpDRVRTKSk6IERlcGVuZCBvbi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W5zCisgICBp dHMgaGlzdG9yaWNhbCB2YWx1ZS4gICovCiAjIGRlZmluZSBSRV9EVVBfTUFYICgweDdmZmYp CiAjZW5kaWYKIApkaWZmIC0tZ2l0IGEvcmVnZXhfaW50ZXJuYWwuaCBiL3JlZ2V4X2ludGVy bmFsLmgKaW5kZXggYzg5ODFhMC4uNzU4Y2Y0NyAxMDA2NDQKLS0tIGEvcmVnZXhfaW50ZXJu YWwuaAorKysgYi9yZWdleF9pbnRlcm5hbC5oCkBAIC0yNiw4ICsyNiw2IEBACiAjaW5jbHVk ZSA8c3RkbGliLmg+CiAjaW5jbHVkZSA8c3RyaW5nLmg+CiAKLSNpbmNsdWRlICJtYnN1cHBv cnQuaCIgLyogZ2F3ayAqLwotCiAjaWYgZGVmaW5lZCBIQVZFX0xBTkdJTkZPX0ggfHwgZGVm aW5lZCBIQVZFX0xBTkdJTkZPX0NPREVTRVQgfHwgZGVmaW5lZCBfTElCQwogIyBpbmNsdWRl IDxsYW5naW5mby5oPgogI2VuZGlmCi0tIAoxLjkuMAoK --------------030302090000050300070904--
bug-grep@HIDDEN
:bug#17381
; Package grep
.
Full text available.Received: (at 17381) by debbugs.gnu.org; 1 May 2014 18:29:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 01 14:29:51 2014 Received: from localhost ([127.0.0.1]:47661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Wfvjz-0005gs-97 for submit <at> debbugs.gnu.org; Thu, 01 May 2014 14:29:51 -0400 Received: from mxout1.netvision.net.il ([194.90.9.20]:35191) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <arnold@HIDDEN>) id 1Wfvjw-0005gi-D2 for 17381 <at> debbugs.gnu.org; Thu, 01 May 2014 14:29:49 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from skeeve.com ([89.139.11.172]) by mxout1.netvision.net.il (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPS id <0N4W00GBMRDLX270@HIDDEN> for 17381 <at> debbugs.gnu.org; Thu, 01 May 2014 21:29:46 +0300 (IDT) Received: from skeeve.com (skeeve.com [127.0.0.1]) by skeeve.com (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id s41ITiaG004129; Thu, 01 May 2014 21:29:44 +0300 Received: (from arnold@localhost) by skeeve.com (8.14.4/8.14.4/Submit) id s41IThl8004128; Thu, 01 May 2014 21:29:43 +0300 From: Aharon Robbins <arnold@HIDDEN> Message-id: <201405011829.s41IThl8004128@HIDDEN> Date: Thu, 01 May 2014 21:29:43 +0300 To: eggert@HIDDEN, arnold@HIDDEN, 17381 <at> debbugs.gnu.org Subject: Re: bug#17381: _GL_ATTRIBUTE_PURE in dfa.h References: <201405010619.s416JeNl020893@HIDDEN> <5361EAD7.7040507@HIDDEN> In-reply-to: <5361EAD7.7040507@HIDDEN> User-Agent: Heirloom mailx 12.5 6/20/10 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17381 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.0 (/) Hi Paul. > > I have to copy the defines for it from dfa.c > > into dfa.h to make it compile. > > It'd be better to move that stuff into custom.h, I expect. Please see > below. custom.h is for system customization to override things that Autoconf can't figure out or gets wrong. > > Are all the new routines in dfa.h needed by code in grep? > > Yes, I'm afraid so. We wouldn't have put them there otherwise. > > > Can we try in the future to the gnulib-specific stuff out of the > > header? > > In the long run it'd be better to have the header just work, so that you > don't have to copy anything from dfa.c to dfa.h or vice versa, and so > that you can just use grep's dfa.c and dfa.h with little or no change. Requiring gnulib in that header makes it less attractive to other projects that might want to use dfa as a black box. Are there such? I don't know. (I thought I'd heard something about gettext using dfa but I am unsure if that is true.) It is certainly making things more painful for me. Does the GL_PURE stuff have to be on every declaration? Or can it just be on the body? What does it even mean, anyway? Does whatever optimization it enables *really* make a big difference, or is it just a micro-optimization? (Serious questions.) > I emailed you something along those lines earlier this month; you can > find a copy at <http://bugs.gnu.org/17157#61>. If you'd like me to come > up with a revised patch, which merges this into the latest gawk master, > I can do that. Yes, I know. I am unsure if your patch, which totally eliminates the ability to compile gawk on systems without multibyte support, is the direction in which I wish to go. It may be, but I haven't done the research yet to be sure that I won't break any of the systems I support. I just looked at the patch again. It really doesn't do the trick; there are lots of places where MBS_SUPPORT is checked in the gawk code and pulling mbsupport.h out of awk.h is likely to break things. Thanks, Arnold
bug-grep@HIDDEN
:bug#17381
; Package grep
.
Full text available.Received: (at 17381) by debbugs.gnu.org; 1 May 2014 06:34:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 01 02:34:18 2014 Received: from localhost ([127.0.0.1]:46994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1WfkZV-0000dC-Bb for submit <at> debbugs.gnu.org; Thu, 01 May 2014 02:34:17 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:42118) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eggert@HIDDEN>) id 1WfkZO-0000cm-OY for 17381 <at> debbugs.gnu.org; Thu, 01 May 2014 02:34:14 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 930F939E8011; Wed, 30 Apr 2014 23:34:04 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ve4af9XVjfPk; Wed, 30 Apr 2014 23:34:00 -0700 (PDT) Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 46B7F39E801B; Wed, 30 Apr 2014 23:34:00 -0700 (PDT) Message-ID: <5361EAD7.7040507@HIDDEN> Date: Wed, 30 Apr 2014 23:33:59 -0700 From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: arnold@HIDDEN, 17381 <at> debbugs.gnu.org Subject: Re: bug#17381: _GL_ATTRIBUTE_PURE in dfa.h References: <201405010619.s416JeNl020893@HIDDEN> In-Reply-To: <201405010619.s416JeNl020893@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17381 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.0 (---) arnold@HIDDEN wrote: > I have to copy the defines for it from dfa.c > into dfa.h to make it compile. It'd be better to move that stuff into custom.h, I expect. Please see below. > Are all the new routines in dfa.h needed by code in grep? Yes, I'm afraid so. We wouldn't have put them there otherwise. > Can we try in the future to the gnulib-specific stuff out of the > header? In the long run it'd be better to have the header just work, so that you don't have to copy anything from dfa.c to dfa.h or vice versa, and so that you can just use grep's dfa.c and dfa.h with little or no change. I emailed you something along those lines earlier this month; you can find a copy at <http://bugs.gnu.org/17157#61>. If you'd like me to come up with a revised patch, which merges this into the latest gawk master, I can do that.
bug-grep@HIDDEN
:bug#17381
; Package grep
.
Full text available.Received: (at submit) by debbugs.gnu.org; 1 May 2014 06:20:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 01 02:20:12 2014 Received: from localhost ([127.0.0.1]:46985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1WfkLr-0000AH-K0 for submit <at> debbugs.gnu.org; Thu, 01 May 2014 02:20:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <arnold@HIDDEN>) id 1WfkLq-0000A0-4V for submit <at> debbugs.gnu.org; Thu, 01 May 2014 02:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <arnold@HIDDEN>) id 1WfkLb-0002EY-LQ for submit <at> debbugs.gnu.org; Thu, 01 May 2014 02:20:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <arnold@HIDDEN>) id 1WfkLb-0002ES-IE for submit <at> debbugs.gnu.org; Thu, 01 May 2014 02:19:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <arnold@HIDDEN>) id 1WfkLV-00028X-CZ for bug-grep@HIDDEN; Thu, 01 May 2014 02:19:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <arnold@HIDDEN>) id 1WfkLP-0002DW-8I for bug-grep@HIDDEN; Thu, 01 May 2014 02:19:49 -0400 Received: from frenzy.freefriends.org ([66.54.153.139]:33213 helo=freefriends.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <arnold@HIDDEN>) id 1WfkLP-0002DQ-1f for bug-grep@HIDDEN; Thu, 01 May 2014 02:19:43 -0400 X-Envelope-From: arnold@HIDDEN X-Envelope-To: <bug-grep@HIDDEN> Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.8/8.14.8) with ESMTP id s416JfDj020894 for <bug-grep@HIDDEN>; Thu, 1 May 2014 00:19:41 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.8/8.14.8/submit) id s416JeNl020893 for bug-grep@HIDDEN; Thu, 1 May 2014 06:19:40 GMT From: arnold@HIDDEN Message-Id: <201405010619.s416JeNl020893@HIDDEN> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@HIDDEN using -f Date: Thu, 01 May 2014 00:19:40 -0600 To: bug-grep@HIDDEN Subject: _GL_ATTRIBUTE_PURE in dfa.h User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) This breaks the gawk build. I have to copy the defines for it from dfa.c into dfa.h to make it compile. I haven't looked hard. Are all the new routines in dfa.h needed by code in grep? If not, could they be made static in dfa.c? Can we try in the future to the gnulib-specific stuff out of the header? Thanks, Arnold
arnold@HIDDEN
:bug-grep@HIDDEN
.
Full text available.bug-grep@HIDDEN
:bug#17381
; Package grep
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.