The dwarf debug information has mechanisms for keeping track of variables whose location changes during the execution of a program. This informationis stored in an objectfile section called .debug_loc. This is not output by avr-gcc when optimization is turned on and one should expect this information to be output.
-- Summary: avr-gcc does not output Dwarf 2 information to track optimized variables' locations Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tsandnes at atmel dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: mingw32 GCC host triplet: mingw32 GCC target triplet: AVR http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21119