https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112708
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also did you add -fvar-tracking-assignments ? (there are other reports asking to turn on -fvar-tracking-assignments for -O0 except it is a big compile time increase in many cases).