https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96672
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Most likely the patch which moves the warning to gimple would help here: https://gcc.gnu.org/pipermail/gcc-patches/2019-October/530995.html But I have not seen any movement on it since last year but I could be wrong.