> > Nope, it does not. >
You are right. Taken from <sys/cdefs.h>:
#if __GNUC_PREREQ (2,96) # define __attribute_malloc__ __attribute__ ((__malloc__)) #else # define __attribute_malloc__ /* Ignore */ #endif
So if you include any system library, GCC will silently ignore the __attribute_malloc__, which is why it worked for me when I tested compiling anything from the PHP tree with gcc-2.95.
This should be the test to include in zend_alloc.h
Ard
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php