This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix up compound literal handling in C FE (PR sanitizer/84307)
- From: Martin Liška <mliska at suse dot cz>
- To: Joseph Myers <joseph at codesourcery dot com>, Jakub Jelinek <jakub at redhat dot com>
- Cc: Marek Polacek <polacek at redhat dot com>, gcc-patches at gcc dot gnu dot org, Paolo Bonzini <bonzini at gnu dot org>
- Date: Mon, 26 Feb 2018 11:00:48 +0100
- Subject: Re: [PATCH] Fix up compound literal handling in C FE (PR sanitizer/84307)
- Authentication-results: sourceware.org; auth=none
- References: <1518192504-49084-1-git-send-email-bonzini@gnu.org> <20180213144020.GR5867@tucnak> <20180214205611.GC5866@tucnak> <alpine.DEB.2.20.1802142203240.4116@digraph.polyomino.org.uk>
On 02/14/2018 11:03 PM, Joseph Myers wrote:
> 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.
>
Jakub you probably forgot to install the patch. Can you please do it?
Should I create a new test-case which you mentioned in previous email?
Martin