https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116148
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Kewen Lin <li...@gcc.gnu.org>: https://gcc.gnu.org/g:86e2dc89c5b8c9d9cca649a34a650e381a05b3a5 commit r15-2658-g86e2dc89c5b8c9d9cca649a34a650e381a05b3a5 Author: Kewen Lin <li...@linux.ibm.com> Date: Thu Aug 1 19:29:22 2024 -0500 testsuite: Adjust fam-in-union-alone-in-struct-2.c to support BE [PR116148] As Andrew pointed out in PR116148, fam-in-union-alone-in-struct-2.c was designed for little-endian, the recent commit r15-2403 made it be tested with running on BE and PR116148 got exposed. This patch is to adjust the expected data for members in with_fam_2_v and with_fam_3_v by considering endianness, also update with_fam_3_v.b[1] from 0x5f6f7f7f to 0x5f6f7f8f to avoid two "7f"s. PR testsuite/116148 gcc/testsuite/ChangeLog: * c-c++-common/fam-in-union-alone-in-struct-2.c: Define macros WITH_FAM_2_V_B[03] and WITH_FAM_3_V_A[07] as endianness, update the checking with these macros and initialize with_fam_3_v.b[1] with 0x5f6f7f8f instead of 0x5f6f7f7f.