https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119251
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |104077 --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC already has Wdangling-pointer which is done at optimization time too so I suspect it should catch most of these. Though it should be improved for handling clobbers if not already done. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104077 [Bug 104077] [meta-bug] bogus/missing -Wdangling-pointer