https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89872
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 30 20:55:58 2019 New Revision: 270743 URL: https://gcc.gnu.org/viewcvs?rev=270743&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-8-branch/gcc/testsuite/gcc.dg/tree-ssa/pr89872.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/gimplify.c branches/gcc-8-branch/gcc/testsuite/ChangeLog