[Bug c++/23205] [4.0/4.1 Regression] [C++/unit-at-a-time] stabs debug info omitted for global const variables

tomas dot vanek at fbl dot cz gcc-bugzilla@gcc.gnu.org
Wed Aug 17 20:44:00 GMT 2005


------- Additional Comments From tomas dot vanek at fbl dot cz  2005-08-17 20:35 -------
It seems the same bug is in generating stabs for any global variable too.
Very easy test code var.c :-)

int var;

gcc -S -gstabs var.c

generates
     .stabs  "var:G(0,1)",32,0,0,0

gcc -S -gstabs -funit-at-a-time var.c

generates only .comm or .skip and does no stabs for the variable.
Tested i386 gcc 4.0.0 and cross avr-gcc 4.0.1.
Still to be left as an exercise for the reader?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23205



More information about the Gcc-bugs mailing list