struct packed: Add fallback byte array implementation
authorPedro Alves <pedro@palves.net>
Mon, 18 Jul 2022 23:26:33 +0000 (00:26 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 25 Jul 2022 15:04:05 +0000 (16:04 +0100)
commitb669667d0749ccf8d70792bb086f41904157e54d
tree9c5f99a9c2ad5f3b166a2e18674622717f06f0e5
parente249e6b8012ea0a14e5768d31becd7b4caff8e77
struct packed: Add fallback byte array implementation

Attribute gcc_struct is not implemented in Clang targeting Windows, so
add a fallback standard-conforming implementation based on arrays.

I ran the testsuite on x86_64 GNU/Linux with this implementation
forced, and saw no regressions.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29373

Change-Id: I023315ee03622c59c397bf4affc0b68179c32374
gdbsupport/packed.h