[Bug c/82340] volatile ignored in compound literal
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 30 08:27:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82340
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 30 08:26:32 2017
New Revision: 253319
URL: https://gcc.gnu.org/viewcvs?rev=253319&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-7-branch/gcc/testsuite/gcc.dg/tree-ssa/pr82340.c
Modified:
branches/gcc-7-branch/gcc/c/ChangeLog
branches/gcc-7-branch/gcc/c/c-decl.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list