From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#11617: Don't use 'register'; these days it's not needed. Date: Sun, 03 Jun 2012 22:50:02 +0800 Message-ID: <87ipf8tpph.fsf@gnu.org> References: <4FCAFED3.4080008@cs.ucla.edu> <831ulwcw2v.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1338735079 6111 80.91.229.3 (3 Jun 2012 14:51:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2012 14:51:19 +0000 (UTC) Cc: Paul Eggert , 11617@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 03 16:51:16 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SbC9D-0006Vz-Kc for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2012 16:51:15 +0200 Original-Received: from localhost ([::1]:53200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbC9D-0001UF-C1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2012 10:51:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbC9A-0001U2-OF for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2012 10:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbC99-0007Hd-6N for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2012 10:51:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbC99-0007HA-2z for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2012 10:51:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SbCAv-0002dH-Ps for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2012 10:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jun 2012 14:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11617 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11617-submit@debbugs.gnu.org id=B11617.133873515110071 (code B ref 11617); Sun, 03 Jun 2012 14:53:01 +0000 Original-Received: (at 11617) by debbugs.gnu.org; 3 Jun 2012 14:52:31 +0000 Original-Received: from localhost ([127.0.0.1]:55885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SbCAQ-0002cN-0R for submit@debbugs.gnu.org; Sun, 03 Jun 2012 10:52:30 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:49413 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SbCA5-0002bw-AS for 11617@debbugs.gnu.org; Sun, 03 Jun 2012 10:52:28 -0400 Original-Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:37581 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SbC8E-0002gG-BN; Sun, 03 Jun 2012 10:50:15 -0400 In-Reply-To: <831ulwcw2v.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 03 Jun 2012 17:24:24 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60669 Archived-At: Eli Zaretskii writes: >> Attached is a patch to remove 'register' from the mainline >> Emacs source code. > > FWIW, I see no compelling reason for this change, even after I've read > the explanations. This keyword is a cue to the compiler, so it in > general conveys non-trivial information. If today's compilers mostly > ignore that, it doesn't mean this will always be the state of affairs. > However, by removing this, we lose those cues forever. I wonder how many of those register variables were actually added after profiling to see if they make any difference. My guess is none, i.e. those keywords are bogus.