[PATCH] -Wdangling-pointer: don't mark SSA lhs sets as stores
Alexandre Oliva
oliva@adacore.com
Fri Mar 3 08:30:50 GMT 2023
On Feb 17, 2023, Richard Biener <richard.guenther@gmail.com> wrote:
>> * gimple-ssa-warn-access.cc
>> (pass_waccess::check_dangling_stores): Skip non-stores.
>>
>> for gcc/testsuite/ChangeLog
>>
>> * g++.dg/warn/Wdangling-pointer.C (warn_init_ref_member): Add
>> two new variants, one fixed, one xfailed.
>> * c-c++-common/Wdangling-pointer-5.c
>> (nowarn_store_arg_store_arg): Add now-expected warnings.
Ping?
https://gcc.gnu.org/pipermail/gcc-patches/2023-February/612186.html
--
Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/
Free Software Activist GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts. Ask me about <https://stallmansupport.org>
More information about the Gcc-patches
mailing list