https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102714
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:23cd18c60c8188e3d68eda721cdb739199e85e5b commit r12-4366-g23cd18c60c8188e3d68eda721cdb739199e85e5b 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.