http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53521
--- Comment #3 from Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch
2012-05-30 12:31:18 UTC ---
(In reply to comment #2)
Well, I think this is a valgrind issue and not a real leak. Whether you
want to optimize code for the non-NULL
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53521
--- Comment #4 from Richard Guenther rguenth at gcc dot gnu.org 2012-05-30
12:46:53 UTC ---
You say not doing free (0) leaks memory? What OS is this on? Note that
we fold such calls away:
case BUILT_IN_FREE:
if (integer_zerop (arg0))
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53521
Jakub Jelinek jakub at gcc dot gnu.org changed:
What|Removed |Added
CC||jakub at gcc dot
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53521
--- Comment #6 from Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch
2012-05-30 14:37:09 UTC ---
(In reply to comment #4)
You say not doing free (0) leaks memory? What OS is this on?
I'm observing on a Linux box that :
MODULE TEST