From 252219dad00fec7cff1da299efbae313e1a3c2aa Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 21 Dec 2003 14:14:39 +0000 Subject: if gcc knows that xine_xmalloc() behaves like malloc(), some more aliasing assumptions can be made (malloc()-returned pointers never alias anything), which can leed to further optimizations CVS patchset: 5933 CVS date: 2003/12/21 14:14:39 --- src/xine-utils/xineutils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index 64a252f32..01923051a 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineutils.h,v 1.75 2003/12/13 11:35:08 valtri Exp $ + * $Id: xineutils.h,v 1.76 2003/12/21 14:14:39 mroi Exp $ * */ #ifndef XINEUTILS_H @@ -616,7 +616,11 @@ void xine_profiler_print_results (void); * Allocate and clean memory size_t 'size', then return the pointer * to the allocated memory. */ +#if !defined(__GNUC__) || __GNUC__ < 3 void *xine_xmalloc(size_t size); +#else +void *xine_xmalloc(size_t size) __attribute__ ((__malloc__)); +#endif /* * Same as above, but memory is aligned to 'alignement'. -- cgit v1.2.3