[PATCH v3] c: Extend the -Wpadded message with actual padding size
authorVit Kabele <vit.kabele@sysgo.com>
Sat, 9 Jul 2022 17:06:43 +0000 (13:06 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Sat, 9 Jul 2022 17:06:43 +0000 (13:06 -0400)
commit7a16d39903ed1bf159f7933a19ccae62155b371b
treeb62ff16b5eeb075a8cc7f130c9f63d2b618853f9
parentd9fa599dc7584d89e758a09a3d68982f12d8751c
[PATCH v3] c: Extend the -Wpadded message with actual padding size

gcc/ChangeLog:

* stor-layout.cc (finalize_record_size): Extend warning message.

gcc/testsuite/ChangeLog:

* c-c++-common/Wpadded.c: New test.
gcc/stor-layout.cc
gcc/testsuite/c-c++-common/Wpadded.c [new file with mode: 0644]