X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fpagealign_alloc.h;h=10e3b1a5322fac710755d7c8765558414c2fb195;hb=daf7f8c02242c535d596231e2f655109b97fa2bc;hp=d7770b502a9798117e6ee34c4de400b6d95fb1c0;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/pagealign_alloc.h b/lib/pagealign_alloc.h index d7770b502..10e3b1a53 100644 --- a/lib/pagealign_alloc.h +++ b/lib/pagealign_alloc.h @@ -1,6 +1,6 @@ /* Memory allocation aligned to system page boundaries. - Copyright (C) 2005, 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2005, 2008, 2010-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,6 +29,9 @@ extern void *pagealign_alloc (size_t size) # if __GNUC__ >= 3 __attribute__ ((__malloc__)) +# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) + __attribute__ ((__alloc_size__ (1))) +# endif # endif ; @@ -37,6 +40,9 @@ extern void *pagealign_alloc (size_t size) extern void *pagealign_xalloc (size_t size) # if __GNUC__ >= 3 __attribute__ ((__malloc__)) +# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) + __attribute__ ((__alloc_size__ (1))) +# endif # endif ;