This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix up compound literal handling in C FE (PR sanitizer/84307)


On Wed, 14 Feb 2018, Jakub Jelinek wrote:

> 2018-02-13  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR sanitizer/84340
> 	* 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.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


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