This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/71668] certain bitfields get negative DW_AT_bit_offset
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 26 Jun 2016 20:33:41 +0000
- Subject: [Bug debug/71668] certain bitfields get negative DW_AT_bit_offset
- Auto-submitted: auto-generated
- References: <bug-71668-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71668
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Is this on a little-endian or big-endian target?
It is little-endian. Note that dwarf issues explains this fully. Basically
DW_AT_bit_offset is defined nicely for big-endian but not nice for
little-endian.
GCC does not emit DW_AT_data_bit_offset yet; I will file a bug report about
that in a second.