https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102676
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-10-11 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- We don't eliminate a malloc that's just used in a conditional, I think there's a related bugreport with p = malloc (n) if (!p) abort (); free (p); or sth like that where we fail to elide the allocation. Note in this case failing allocation _would_ have a side-effect.