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

--- Comment #9 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:d45381550ec25de9c5eb7168bad85586109b4991

commit r17-4774-gd45381550ec25de9c5eb7168bad85586109b4991
Author: Richard Biener <[email protected]>
Date:   Tue Sep 29 13:15:07 2026 +0200

    tree-optimization/60075 - fix address-space handling in PRE

    The following fixes a thinko in COMPONENT_REF handling in VN/PRE
    where we falsely assumed the type of the FIELD_DECL specifies the
    type of the COMPONENT_REF in full, disregarding address-space
    qualification.

            PR tree-optimization/60075
            * tree-ssa-sccvn.cc (copy_reference_ops_from_ref): Do not
            use the type of the FIELD_DECL for COMPONENT_REF ops.
            * tree-ssa-pre.cc (create_component_ref_by_pieces_1):
            Likewise.

            * gcc.target/avr/pr60075.c: New testcase.

Reply via email to