https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Dimitar Dimitrov <dimi...@gcc.gnu.org>: https://gcc.gnu.org/g:b13e34699c7d27e561fcfe1b66ced1e50e69976f commit r15-2904-gb13e34699c7d27e561fcfe1b66ced1e50e69976f Author: Dimitar Dimitrov <dimi...@dinux.eu> Date: Mon Aug 5 19:00:28 2024 +0300 testsuite: Fix struct size check [PR116155] The size of "struct only_fam_2" is dependent on the alignment of the flexible array member "b", and not on the type of the preceding bit-fields. For most targets the two are equal. But on default_packed targets like pru-unknown-elf, the alignment of int is not equal to the size of int, so the test failed. Patch was suggested by Qing Zhao. Tested on pru-unknown-elf and x86_64-pc-linux-gnu. PR testsuite/116155 gcc/testsuite/ChangeLog: * c-c++-common/fam-in-union-alone-in-struct-1.c: Adjust check to account for default_packed targets. Signed-off-by: Dimitar Dimitrov <dimi...@dinux.eu>