------- 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