gcc (GCC) 4.5.0 20100322 (experimental) ------------------------------------------------------------------------------- int h (void); int f (void) { int x, y; x = h () * 2; y = h () * 2; return x + y; } ------------------------------------------------------------------------------- -c -Wall -g -O2 ------------------------------------------------------------------------------- <2><50>: Abbrev Number: 3 (DW_TAG_variable) <51> DW_AT_name : x <55> DW_AT_type : <0x67> <59> DW_AT_location : 0x4c (location list) <2><5d>: Abbrev Number: 4 (DW_TAG_variable) <5e> DW_AT_name : y <62> DW_AT_type : <0x67> ... but no DW_AT_location
-- Summary: Missing DW_AT_location for a variable Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jan dot kratochvil at redhat dot com GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43478