This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I believe that any after-the-fact attempt to recover bitfield boundaries is going to fail unless you preserve more information during bitfield layout.
Consider
struct { char : 8; char : 0; char : 8; };
where the : 0 isn't preserved in any way and you can't distinguish it from struct { char : 8; char : 8; }.
(gdb) p fld $41 = (tree) 0x7ffff7778130 (gdb) pt <field_decl 0x7ffff7778130 D.1593 ...
struct bits { char a; int b:7; int :0; <-- bitregion start int c:9; <-- bitregion start unsigned char d; } *p;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |