[Bug c/82340] volatile ignored in compound literal
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 16:44:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82340
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 16:43:59 2018
New Revision: 262027
URL: https://gcc.gnu.org/viewcvs?rev=262027&root=gcc&view=rev
Log:
Backported from mainline
2017-09-29 Jakub Jelinek <jakub@redhat.com>
PR c/82340
* c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
instead of trying to set just TREE_READONLY manually.
* gcc.dg/tree-ssa/pr82340.c: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/pr82340.c
Modified:
branches/gcc-6-branch/gcc/c/ChangeLog
branches/gcc-6-branch/gcc/c/c-decl.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list