X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fpagealign_alloc.h;h=56ad91f10feb0035a339b9b749a46beab37ab9d2;hb=refs%2Ftags%2Fdebian%2F20140202%2Bstable-1;hp=dc64a8a81cc4a47d83c5539f1903741b569b6f29;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/lib/pagealign_alloc.h b/lib/pagealign_alloc.h index dc64a8a81..56ad91f10 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 Free Software Foundation, Inc. + Copyright (C) 2005, 2008, 2010-2014 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 ;