From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: [22.1.90]: Point before start of properties Date: Sat, 23 Feb 2008 14:29:31 -0500 Message-ID: References: <6EE216E1AA959543A555C60FF34FB76702E48034@maileube01.misys.global.ad> <87wspcj0ou.fsf@stupidchicken.com> <6EE216E1AA959543A555C60FF34FB76702EED4A1@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB76702EEDA6E@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB7670300E86B@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB7670305B82C@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB7670305BF82@maileube01.misys.global.ad> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1203795373 29024 80.91.229.12 (23 Feb 2008 19:36:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2008 19:36:13 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 23 20:36:35 2008 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 1JT0Ai-0004j3-C9 for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2008 20:36:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JT0AC-0006Rn-Np for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2008 14:36:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JT03x-0001dH-Qo for emacs-devel@gnu.org; Sat, 23 Feb 2008 14:29:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JT03v-0001cV-Vj for emacs-devel@gnu.org; Sat, 23 Feb 2008 14:29:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JT03v-0001cQ-RJ for emacs-devel@gnu.org; Sat, 23 Feb 2008 14:29:31 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JT03v-0001qk-QX for emacs-devel@gnu.org; Sat, 23 Feb 2008 14:29:31 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JT03v-0005DL-8S; Sat, 23 Feb 2008 14:29:31 -0500 In-reply-to: (message from Eli Zaretskii on Fri, 22 Feb 2008 18:27:59 +0200) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:90143 gmane.emacs.pretest.bugs:21277 Archived-At: Debugging GCC-optimized (under -O2) code is not just hard, it's downright impossible! This is unfortunate, but fixing it is very hard. It would probably require new ways to communcate info to GDB about the optimizations that were done, and changes in GCC and GDB. It would be great if someone implements these features, but there's no use complaining that people have not done it. It can be solved almost trivially, IMO, by providing a special -Ox switch which would turn off every optimization whose results cannot be expressed reliably using the modern debug info formats. Doesn't -O1 do that job?