https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85817
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-05-17 Ever confirmed|0 |1 --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to prathamesh3492 from comment #1) > Created attachment 44142 [details] > Untested fix > > Oops, sorry about that. It easily happens. > 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 ? Yes, it helps ;) > > Thanks, > Prathamesh