https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110501
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Invalid use-after-free / |Invalid use-after-free / |realloc |realloc at -O0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- At -O0, the redundant load from S->sp is not optimized out ... so the warning does not realize that it was checking against the return value of realloc ...