[LLVM] Use DWARFv4 bitfields when tuning for GDB
authorDavid Spickett <david.spickett@linaro.org>
Mon, 10 Oct 2022 14:35:15 +0000 (14:35 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Thu, 27 Oct 2022 08:51:07 +0000 (08:51 +0000)
commitc6e2de60423ae98b1a7a175bab98c3c3c578b284
tree5ae8b43733c7b541687ad1fece9c510d419a2c33
parentea1a2aaa9ad39fb79de2de7d753374bc0a44e7ba
[LLVM] Use DWARFv4 bitfields when tuning for GDB

GDB implemented data_bit_offset in https://sourceware.org/bugzilla/show_bug.cgi?id=12616
which has been present since GDB 8.0.

GCC started using it at GCC 11.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D135583
clang/docs/ReleaseNotes.rst
llvm/docs/ReleaseNotes.rst
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/bitfields-dwarf4.ll
llvm/test/DebugInfo/X86/packed_bitfields.ll