Re: [PATCH] gimplify: Add -Wuse-before-shadow [PR92386]

2025-05-16 Thread Andrew Pinski
On Fri, May 16, 2025 at 5:13 PM Matthew Sotoudeh wrote: > > This is a small patch to address > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92386 > > When a variable is used before being shadowed in the same scope, GCC > outputs incorrect/misleading debug information. The Bugzilla report has > a m

[PATCH] gimplify: Add -Wuse-before-shadow [PR92386]

2025-05-16 Thread Matthew Sotoudeh
This is a small patch to address https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92386 When a variable is used before being shadowed in the same scope, GCC outputs incorrect/misleading debug information. The Bugzilla report has a minimal example and explains why a direct fix was not desirable (debug