diff options
author | Richard Biener <rguenther@suse.de> | 2021-10-13 09:13:36 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-10-13 11:26:22 +0200 |
commit | 23cd18c60c8188e3d68eda721cdb739199e85e5b (patch) | |
tree | 58d567d17eb1a4346ce4ca215b22d2ff475ea677 /gcc/debug.c | |
parent | 78fff8a4da1789521b44a1a94aed756441845647 (diff) | |
download | gcc-23cd18c60c8188e3d68eda721cdb739199e85e5b.zip gcc-23cd18c60c8188e3d68eda721cdb739199e85e5b.tar.gz gcc-23cd18c60c8188e3d68eda721cdb739199e85e5b.tar.bz2 |
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.
Diffstat (limited to 'gcc/debug.c')
0 files changed, 0 insertions, 0 deletions