]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH 10/11] Handle bitfields for CodeView
authorMark Harmstone <mark@harmstone.com>
Wed, 26 Jun 2024 02:20:26 +0000 (20:20 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 26 Jun 2024 02:20:26 +0000 (20:20 -0600)
commit009b3290f2b2a41409530cbc8119343d6344b50e
treeea1b57df15bcc5e4ec740905aec40e365306aff9
parent3800a78a767f463bed6948c640eee4250781e62e
[PATCH 10/11] Handle bitfields for CodeView

Translates structure members with DW_AT_data_bit_offset set in DWARF
into LF_BITFIELD symbols.

gcc/
* dwarf2codeview.cc (struct codeview_custom_type): Add lf_bitfield to
union.
(write_lf_bitfield): New function.
(write_custom_types): Call write_lf_bitfield.
(create_bitfield): New function.
(get_type_num_struct): Handle bitfields.
* dwarf2codeview.h (LF_BITFIELD): Define.
gcc/dwarf2codeview.cc
gcc/dwarf2codeview.h