http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54954
--- Comment #7 from swalter at lexmark dot com ---
(In reply to Andrew Pinski from comment #6)
> The header file malloc.h (which is non-standard by the way) has the
> attribute malloc on the malloc function call.
>
> So this is inv
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54954
--- Comment #5 from swalter at lexmark dot com 2012-10-18 13:41:13 UTC ---
Thanks for looking into this, Richard. I should have mentioned that you'll
need to build with optimization turned on.
Expected behavior:
test.c built wi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54954
--- Comment #2 from swalter at lexmark dot com 2012-10-17 16:14:33 UTC ---
Created attachment 28463
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28463
malloc implementation for test.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54954
--- Comment #1 from swalter at lexmark dot com 2012-10-17 16:10:29 UTC ---
Created attachment 28462
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28462
Bug testcase
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54954
Bug #: 54954
Summary: malloc optimizations not disabled by -fno-builtin
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal