Mercurial > hg > octave-kai > gnulib-hg
diff lib/eealloc.h @ 10074:cf0a8e173c39
Help GCC to do better code generation.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 15 May 2008 02:01:46 +0200 |
parents | bbbbbf4cd1c5 |
children | b5e42ef33b49 |
line wrap: on
line diff
--- a/lib/eealloc.h +++ b/lib/eealloc.h @@ -1,5 +1,5 @@ /* Memory allocation with expensive empty allocations. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2008 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2003, based on prior work by Jim Meyering. @@ -34,6 +34,9 @@ #if MALLOC_0_IS_NONNULL # define eemalloc malloc #else +# if __GNUC__ >= 3 +static inline void *eemalloc (size_t n) __attribute__ ((__malloc__)); +# endif static inline void * eemalloc (size_t n) {