PR sanitizer/84307
commitbe4b81f3784a9c9f3f846f3f63db97695a214454
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2018 10:02:24 +0000 (25 10:02 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2018 10:02:24 +0000 (25 10:02 +0000)
tree14ae49465d58278bc2c4e120847f9c4c7c40e6d7
parentdc5fe044129c03573d10b48730f7281da21e8049
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259641 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/c/c-typeck.c