https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84190
--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Fri Feb 16 07:57:56 2018 New Revision: 257722 URL: https://gcc.gnu.org/viewcvs?rev=257722&root=gcc&view=rev Log: 2018-02-16 Richard Biener <rguent...@suse.de> PR tree-optimization/84190 * tree-ssa.c (non_rewritable_mem_ref_base): Do not touch volatile accesses if the decl isn't volatile. * g++.dg/torture/pr84190.C: New testcase. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/torture/pr84190.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-ssa.c