Re: [PATCH] constrain PHI handling in -Wuse-after-free (PR104232)

2022-01-28 Thread Richard Biener via Gcc-patches
On Thu, Jan 27, 2022 at 7:58 PM Martin Sebor via Gcc-patches wrote: > > The indiscriminate PHI handling by -Wuse-after-free has caused > the false positive reported in PR 104232. The attached patch > refines the handling to only consider PHIs all of whose operands > refer to the same object and d

[PATCH] constrain PHI handling in -Wuse-after-free (PR104232)

2022-01-27 Thread Martin Sebor via Gcc-patches
The indiscriminate PHI handling by -Wuse-after-free has caused the false positive reported in PR 104232. The attached patch refines the handling to only consider PHIs all of whose operands refer to the same object and disregard the rest. Tested on x86_64-linux and by compiling a few toolchain pr