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

Reply via email to