From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#4470: Acknowledgement (23.1; threaded interpreter) Date: Fri, 18 Sep 2009 20:25:46 +0200 Message-ID: References: Reply-To: Andreas Schwab , 4470@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253299643 29603 80.91.229.12 (18 Sep 2009 18:47:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 18:47:23 +0000 (UTC) Cc: 4470@emacsbugs.donarmstrong.com To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 20:47:15 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MoiUF-0005UO-C8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 20:47:15 +0200 Original-Received: from localhost ([127.0.0.1]:38930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoiUE-0001Bl-Tp for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 14:47:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoiUA-0001Ba-0t for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 14:47:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoiU5-0001BH-HN for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 14:47:09 -0400 Original-Received: from [199.232.76.173] (port=35014 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoiU5-0001B7-8R for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 14:47:05 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41622) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoiU4-0007pc-KZ for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2009 14:47:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8IIl2mf008418; Fri, 18 Sep 2009 11:47:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8IIZ4Ha006611; Fri, 18 Sep 2009 11:35:04 -0700 Resent-Date: Fri, 18 Sep 2009 11:35:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Andreas Schwab Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 18 Sep 2009 18:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4470 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4470-submit@emacsbugs.donarmstrong.com id=B4470.12532983545337 (code B ref 4470); Fri, 18 Sep 2009 18:35:04 +0000 Original-Received: (at 4470) by emacsbugs.donarmstrong.com; 18 Sep 2009 18:25:54 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8IIPpuL005332 for <4470@emacsbugs.donarmstrong.com>; Fri, 18 Sep 2009 11:25:53 -0700 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 6A9531C0032A; Fri, 18 Sep 2009 20:25:50 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 0F5D990171; Fri, 18 Sep 2009 20:25:50 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan1.mnet-online.de [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id HfqIgAcQjAWn; Fri, 18 Sep 2009 20:26:37 +0200 (CEST) Original-Received: from igel.home (DSL01.83.171.184.139.ip-pool.NEFkom.net [83.171.184.139]) by mail.mnet-online.de (Postfix) with ESMTP; Fri, 18 Sep 2009 20:25:49 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 2C746140046; Fri, 18 Sep 2009 20:25:46 +0200 (CEST) X-Yow: ..I just walked into th' HOUSE OF REPRESENTATIVES with fourteen WET DOLPHINS and an out-of-date MARRIAGE MANUAL... In-Reply-To: (Tom Tromey's message of "Fri, 18 Sep 2009 11:36:49 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 18 Sep 2009 14:47:09 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31232 Archived-At: Tom Tromey writes: > + static int initialized; > + > + if (!initialized) > + { > + int i; > + initialized = 1; > + /* We must initialize every slot in the table. An empty > + slot before Bconstant should just abort. All the opcodes > + after Bconstant should use the same code as Bconstant. */ > + for (i = 0; i < 256; ++i) > + { > + if (!targets[i]) > + targets[i] = i < Bconstant ? &&insn_default : &&insn_Bconstant; > + } > + } > +#endif You can use [0 ... 255] = &&insn_default, [Bconstant ... 255] = &&insn_Bconstant to statically initialize the array, avoiding the runtime initialisation. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."