This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/82340] volatile ignored in compound literal


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82340

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Sep 29 07:35:37 2017
New Revision: 253280

URL: https://gcc.gnu.org/viewcvs?rev=253280&root=gcc&view=rev
Log:
        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:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr82340.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]