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

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

https://gcc.gnu.org/g:d5444af5d6939181794ea2188cdd6e3b6579978a

commit r17-6054-gd5444af5d6939181794ea2188cdd6e3b6579978a
Author: Jielun Wu <[email protected]>
Date:   Fri Nov 6 15:59:06 2026 +0800

    debug: Use bits for DWARF extraction shifts [PR128392]

    DWARF bit extraction mixes the address size in bytes with bit offsets,
    producing incorrect shift counts. Convert the address size to bits
    before calculating the shifts.

    gcc/ChangeLog:

            PR debug/128392
            * dwarf2out.cc (mem_loc_descriptor): Use the address size in bits
            when calculating bit-extraction shifts.

    gcc/testsuite/ChangeLog:

            PR debug/128392
            * gcc.dg/guality/pr128392.c: New test.

    Signed-off-by: Jielun Wu <[email protected]>

Reply via email to