Re: [PATCH] __attribute_malloc__ for malloc-like functions

From: Date: Thu, 28 Aug 2003 13:20:47 +0000
Subject: Re: [PATCH] __attribute_malloc__ for malloc-like functions
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-4224@lists.php.net to get a copy of this message
    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

« previous php.internals (#4224) next »