--- Comment #2 from tomas dot vanek at fbl dot cz 2005-10-28 17:14 ---
I'm sure it is. I have to declare variables in other segment than .data
for my AVR project and if they are declared in one module and __used__ in some
others, they cannot be showed in gdb and AVRstudio (however
Summary: unit-at-a-time: debug info not emitted for unused global
variables
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at g
--- 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