This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23205] [4.0/4.1 Regression] [C++] debug info omitted for global const variables
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Aug 2005 18:57:33 -0000
- Subject: [Bug c++/23205] [4.0/4.1 Regression] [C++] debug info omitted for global const variables
- References: <20050802184349.23205.dpatel@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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