http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19831
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org |gnu.org | --- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-07 14:11:29 UTC --- I'll give it another try somewhen. Don't mark the free as necessary, nor its operand. If a malloc ends up not being marked as necessary and all uses of the lhs are free calls remove the pairs, otherwise do nothing in eliminate_unnecessary_stmts.