Re: [patch] convert -Walloca pass to ranger

2020-10-06 Thread Aldy Hernandez via Gcc-patches
On 10/5/20 7:12 PM, Martin Sebor wrote: It the future, I would even like to remove the specific range the ranger was able to compute from the error message itself.  As will become obvious, the ranger can get pretty outrageous ranges that are entirely non-obvious by looking at the code.  Pep

Re: [patch] convert -Walloca pass to ranger

2020-10-05 Thread Martin Sebor via Gcc-patches
On 10/5/20 3:51 AM, Aldy Hernandez via Gcc-patches wrote: The walloca pass is a mess.  It has all sorts of heuristics to divine problematic ranges fed into alloca, none of them very good, and all of them unreadable.  The mess therein was actually one of the original motivators for the ranger pr

Re: UX ideas for diagnostics involving ranges (was Re: [patch] convert -Walloca pass to ranger)

2020-10-05 Thread Andrew MacLeod via Gcc-patches
On 10/5/20 11:28 AM, David Malcolm via Gcc-patches wrote: On Mon, 2020-10-05 at 11:51 +0200, Aldy Hernandez via Gcc-patches wrote: The walloca pass is a mess. It has all sorts of heuristics to divine problematic ranges fed into alloca, none of them very good, and all of them unreadable. The me

UX ideas for diagnostics involving ranges (was Re: [patch] convert -Walloca pass to ranger)

2020-10-05 Thread David Malcolm via Gcc-patches
On Mon, 2020-10-05 at 11:51 +0200, Aldy Hernandez via Gcc-patches wrote: > The walloca pass is a mess. It has all sorts of heuristics to > divine > problematic ranges fed into alloca, none of them very good, and all > of > them unreadable. The mess therein was actually one of the original > mo