Behaviour of attribute "context" changed, sparse 0.3 vs. 0.4(.1)

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

 



Hello,

the declaration 
int nArr1[5] __attribute__((context(0,1,2)));
parsed with sparse 0.3 results in a symbol with one context in 
symbol->ctype.contexts and symbol->ctype.base_type->ctype.contexts is 
empty.

If we do the same with sparse 0.4 (or also 0.4.1), we get a symbol with 
one context in symbol->ctype.contexts, 
but now  symbol->ctype.base_type->ctype.contexts also has the same 
context.

Perhaps interesting: The result of declaration 
int __attribute__((context(0,1,2))) nArr2[5];
didn't change.

Is this behaviour OK?
Is this behaviour expected? 

Greetings
Thomas Schmid
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux