Re: [PATCH] tree-optimization/104475 - improve access diagnostics

2022-12-06 Thread Jakub Jelinek via Gcc-patches
On Tue, Dec 06, 2022 at 10:50:20AM +0100, Richard Biener wrote: > When we end up isolating a nullptr path it happens we diagnose > accesses to offsetted nullptr objects. The current diagnostics > have no good indication that this happens so the following records > the fact that our heuristic detec

[PATCH] tree-optimization/104475 - improve access diagnostics

2022-12-06 Thread Richard Biener via Gcc-patches
When we end up isolating a nullptr path it happens we diagnose accesses to offsetted nullptr objects. The current diagnostics have no good indication that this happens so the following records the fact that our heuristic detected a nullptr based access in the access_ref structure and sets up diagn