[Bug tree-optimization/102714] [10/11 Regression] A volatile-related problem cased by ipa inline pass

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 3 13:09:48 GMT 2021


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

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

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

commit r11-9201-gd60e310a4b58c713c204060db439451d90b54c47
Author: Richard Biener <rguenther@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  <rguenther@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)


More information about the Gcc-bugs mailing list