https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89872
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:33:40 2019 New Revision: 275144 URL: https://gcc.gnu.org/viewcvs?rev=275144&root=gcc&view=rev Log: Backported from mainline 2019-03-29 Jakub Jelinek <ja...@redhat.com> PR c/89872 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a non-addressable complit into its initializer if it is volatile. * gcc.dg/tree-ssa/pr89872.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/pr89872.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/gimplify.c branches/gcc-7-branch/gcc/testsuite/ChangeLog