https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116148

--- Comment #13 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:10972e6fb59cf83e12dcf7d5d6db01aa8e38dc52

commit r15-2907-g10972e6fb59cf83e12dcf7d5d6db01aa8e38dc52
Author: Kewen Lin <li...@linux.ibm.com>
Date:   Tue Aug 13 21:25:13 2024 -0500

    testsuite: Fix fam-in-union-alone-in-struct-2.c with unsigned char
[PR116148]

    As PR116148#c7 shows, fam-in-union-alone-in-struct-2.c still
    fails on hppa which is a BE environment, but by checking more
    (also confirmed by John in PR116148#c12), it's due to that
    signedness of plain char on hppa is signed therefore the value
    of with_fam_3_v.a[7] "8f" get sign extended as "ffffff8f" then
    the verification will fail.  This patch is to change plain char
    with unsigned char to avoid that.

            PR testsuite/116148

    gcc/testsuite/ChangeLog:

            * c-c++-common/fam-in-union-alone-in-struct-2.c: Change the type of
            member a[] of union with_fam_3 with unsigned char.

Reply via email to