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

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:8d016315a95cf4d9b72ee8f299e466457ca154b3

commit r10-10262-g8d016315a95cf4d9b72ee8f299e466457ca154b3
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Oct 13 09:13:36 2021 +0200

    ipa/102714 - IPA SRA eliding volatile

    The following fixes the volatileness check of IPA SRA which was
    looking at the innermost reference when checking TREE_THIS_VOLATILE
    but the reference to check is the outermost one.

    2021-10-13  Richard Biener  <rguent...@suse.de>

            PR ipa/102714
            * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
            check.

            * gcc.dg/ipa/pr102714.c: New testcase.

    (cherry picked from commit 23cd18c60c8188e3d68eda721cdb739199e85e5b)

Reply via email to