From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26784 invoked by alias); 2 Aug 2005 18:57:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26716 invoked by uid 48); 2 Aug 2005 18:57:33 -0000 Date: Tue, 02 Aug 2005 18:57:00 -0000 Message-ID: <20050802185733.26714.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050802184349.23205.dpatel@apple.com> References: <20050802184349.23205.dpatel@apple.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23205] [4.0/4.1 Regression] [C++] debug info omitted for global const variables X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg00245.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-02 18:57 ------- Confirmed, this is because we "inline" the value of j and then remove the variable but for some reason dwarf-2 emits debuging info. This is unit-at-a-time problem as you can reproduce it on the 3.4 branch by adding -funit-at-a-time -O0 -gstabs+ and you will not get the debug info. You know what is better is just move to dwarf-2 instead for ppc-darwin. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Severity|normal |minor Status|UNCONFIRMED |NEW Component|debug |c++ Ever Confirmed| |1 Keywords| |wrong-debug Last reconfirmed|0000-00-00 00:00:00 |2005-08-02 18:57:31 date| | Summary|[C++] debug info omitted for|[4.0/4.1 Regression] [C++] |global const variables |debug info omitted for | |global const variables Target Milestone|--- |4.0.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23205