On 5/23/19 9:26 AM, Jakub Jelinek wrote:
> On Thu, May 23, 2019 at 09:23:09AM +0200, Martin Liška wrote:
>> Hi.
>>
>> ASAN should skip TREE_STATIC target expression similarly to 
>> gimplify_decl_expr.
>>
>> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>>
>> Ready to be installed?
>> Thanks,
>> Martin
>>
>> gcc/ChangeLog:
>>
>> 2019-05-22  Martin Liska  <mli...@suse.cz>
>>
>>      PR sanitizer/90570
>>      * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
>>      expression similarly to gimplify_decl_expr.
>>
>> gcc/testsuite/ChangeLog:
>>
>> 2019-05-22  Martin Liska  <mli...@suse.cz>
>>
>>      PR sanitizer/90570
>>      * g++.dg/asan/pr90570.C: New test.
> 
> Ok (and after a while to 9.x too (not sure if 7.x/8.x need that too or not).

I'll backport that to all of them. Theoretically they can be affected.

Thanks,
Martin

> 
>       Jakub
> 

Reply via email to