summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-12-21 14:14:39 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-12-21 14:14:39 +0000
commit252219dad00fec7cff1da299efbae313e1a3c2aa (patch)
tree00864472f1201742dab06ca28259ec7d2370926f
parent09b56354ab685eef79ca7f22218b066e9b269207 (diff)
downloadxine-lib-252219dad00fec7cff1da299efbae313e1a3c2aa.tar.gz
xine-lib-252219dad00fec7cff1da299efbae313e1a3c2aa.tar.bz2
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
-rw-r--r--src/xine-utils/xineutils.h6
1 files changed, 5 insertions, 1 deletions
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'.