avr-gcc-v: Reading specs from c:/programs/WinAVR/bin/../lib/gcc/avr/3.4.1/specs Configured with: ../gcc-3.4.1/configure --prefix=e:/avrdev/install --build=mingw32 --host=mingw32 --target=avr --enable-languages=c,c++ Thread model: single gcc version 3.4.1
command line: avr-gcc -gdwarf-2 bitfieldbug.c -o bf.elf The debug output as shown by avr-readelf -w bf.elf shows that the first bitfield member has a DW_AT_data_member_location of ff ff ff ff ff, which is obviously wrong. This behaviour seems to persist no matter how I define the bitfield. ---source--- typedef struct { int j:5; int k:6; int m:5; int n:8; } faultybitfield_t; int main(int arcg, char **argv) { faultybitfield_t bf; bf.j = 3; return 0; } ---end source--- -- Summary: Error in dwarf2 debug output of bitfield members Product: gcc Version: 3.4.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tsandnes at atmel dot com CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: 386 GCC target triplet: AVR http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17993