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

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

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

commit r12-2831-gbb169406cdc9e044eaec500dd742c2fed40f5488
Author: Richard Biener <[email protected]>
Date:   Mon Aug 9 10:19:10 2021 +0200

    middle-end/101824 - properly handle volatiles in nested fn lowering

    When we build the COMPONENT_REF of a formerly volatile local off
    the FRAME decl we have to make sure to mark the COMPONENT_REF
    as TREE_THIS_VOLATILE.  While the GIMPLE operand scanner looks
    at the FIELD_DECL this is not how volatile GENERIC refs work.

    2021-08-09  Richard Biener  <[email protected]>

            PR middle-end/101824
            * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
            volatile in case the variable was.

            * gcc.dg/tree-ssa/pr101824.c: New testcase.

Reply via email to