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 sanitizer/84307] asan blocks dead-store elimination


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Apr 25 10:02:24 2018
New Revision: 259641

URL: https://gcc.gnu.org/viewcvs?rev=259641&root=gcc&view=rev
Log:
        PR sanitizer/84307
        * c-decl.c (build_compound_literal): Call pushdecl (decl) even when
        it is not TREE_STATIC.
        * c-typeck.c (c_mark_addressable) <case COMPOUND_LITERAL_EXPR>: Mark
        not just the COMPOUND_LITERAL_EXPR node itself addressable, but also
        its COMPOUND_LITERAL_EXPR_DECL.

Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/c/c-typeck.c

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