https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85817
--- Comment #1 from prathamesh3492 at gcc dot gnu.org --- Created attachment 44142 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44142&action=edit Untested fix Oops, sorry about that. I put the condition if (integer_zerop (retval)) continue; at the wrong place -;) Can also be reproduced with: _Bool f() { return 0; } In that the pure-const dump shows the function marked as malloc -:( Could you check if the attached patch fixes the GIMP issue ? Thanks, Prathamesh