Re: [spice-protocol PATCH v2 01/10] macros: verify if __alloc_size__ works with clang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 24, 2015 at 02:08:49PM +0200, Victor Toso wrote:
> Hey,
> 
> On Mon, Aug 24, 2015 at 01:55:05PM +0200, Christophe Fergeau wrote:
> > On Fri, Aug 14, 2015 at 06:24:22PM +0200, Victor Toso wrote:
> > > So we can avoid using using an attribute not supported for the compiler.
> > > 
> > > warning:
> > > ../spice-common/common/mem.h:91:80: warning: unknown attribute
> > > '__alloc_size__' ignored [-Wunknown-attributes]
> > 
> > Any idea if this is because your clang is too old, or because it only
> > knows of __attribute__((alloc_size(x,y)) which is what is documented at
> > https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-g_t_0040code_007balloc_005fsize_007d-function-attribute-3080
> > ?
> > 
> > According to
> > http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120521/058005.html
> > clang has support for this attribute.
> > 
> > Christophe
> 
> Looks like they drop it :(
> https://github.com/llvm-mirror/clang/commit/c047507a9a79e89fc8339e074fa72822a7e7ea73

Ah indeed :)

Christophe

Attachment: pgp4X6WulkAJ4.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]