From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: My Emacs unicode 2 crash again when I do some *Replace String (M-%)*, I give the debug informations under gdb in the attachments. Date: Thu, 08 Mar 2007 06:24:08 +0200 Message-ID: References: <20070306063056.GA21948@debian-testing-hy.localdomain> <86zm6q5upr.fsf@lola.quinscape.zz> <17902.9556.720278.162036@kahikatea.snap.net.nz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1173327875 6682 80.91.229.12 (8 Mar 2007 04:24:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 04:24:35 +0000 (UTC) Cc: nickrob@snap.net.nz, handa@m17n.org, hongyi.zhao@gmail.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 08 05:24:28 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPAB1-00053U-JT for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2007 05:24:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPABB-0000RT-Ic for ged-emacs-devel@m.gmane.org; Wed, 07 Mar 2007 23:24:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPAB1-0000RO-1H for emacs-devel@gnu.org; Wed, 07 Mar 2007 23:24:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPAAy-0000RC-LR for emacs-devel@gnu.org; Wed, 07 Mar 2007 23:24:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPAAy-0000R9-FC for emacs-devel@gnu.org; Wed, 07 Mar 2007 23:24:24 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HPAAd-00064o-Lo; Wed, 07 Mar 2007 23:24:03 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-4-115.inter.net.il [80.230.4.115]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GGA34297 (AUTH halo1); Thu, 8 Mar 2007 06:23:50 +0200 (IST) In-reply-to: (message from Richard Stallman on Wed, 07 Mar 2007 12:25:58 -0500) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67557 Archived-At: > From: Richard Stallman > Date: Wed, 07 Mar 2007 12:25:58 -0500 > Cc: emacs-devel@gnu.org, hongyi.zhao@gmail.com, handa@m17n.org > > should work. The current default for Emacs is "-g -O2". I think it should > be "-g" for CVS Emacs, but I think that we might have had this discussion > on the mailing list before. > > I use -g -O0 -fno-inline for best debugging. Lamentably, given the current attitude of the GCC maintainers, there's no other way. It looks like no one cares anymore about code developers who need to debug and test the same code they eventually ship at release time. If you use GCC, you are forced to debug and test with -O0, and then ship a program compiled with -O2 which you didn't debug and test. I couldn't convince GCC developers that debuggability is much more important in the vast majority of cases than the extra 5%-7% performance gains one gets by using all the tweaks -O2 does that defeat debugging. Sigh.