libgcc: Move cfa_how into potential padding in struct frame_state_reg_info
commitacdb24166d13d87c374e578d2ad5d58249171930
authorFlorian Weimer <fweimer@redhat.com>
Mon, 17 Oct 2022 09:09:17 +0000 (17 11:09 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 17 Oct 2022 09:09:17 +0000 (17 11:09 +0200)
tree7a3873bfa4596970c812f73211a07699399376b3
parent0f4815502d8dac07579dc7a5a40c597a18291b4c
libgcc: Move cfa_how into potential padding in struct frame_state_reg_info

On many architectures, there is a padding gap after the how array
member, and cfa_how can be moved there.  This reduces the size of the
struct and the amount of memory that uw_frame_state_for has to clear.

There is no measurable performance benefit from this on x86-64 (even
though the memset goes from 120 to 112 bytes), but it seems to be a
good idea to do anyway.

libgcc/

* unwind-dw2.h (struct frame_state_reg_info): Move cfa_how member
and reduce its size.
libgcc/unwind-dw2.h