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

--- Comment #22 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Harald Anlauf
<anl...@gcc.gnu.org>:

https://gcc.gnu.org/g:5ae344e3acabf11cde001419f9bec64a2cf89f5a

commit r14-11201-g5ae344e3acabf11cde001419f9bec64a2cf89f5a
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Jan 2 20:22:23 2025 +0100

    Fortran: Cray pointer comparison wrongly optimized away [PR106692]

            PR fortran/106692

    gcc/fortran/ChangeLog:

            * trans-expr.cc (gfc_conv_expr_op): Inhibit excessive optimization
            of Cray pointers by treating them as volatile in comparisons.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/cray_pointers_13.f90: New test.

    (cherry picked from commit c7754a2fb2e60987524947fe189f3ffac035ea1d)

Reply via email to