sparse-llvm array size computation issue

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

 



Hi,

I am investigating an issue with following test case:

int main(void)
{
const char *names[] = {
"dibyendu",
"majumdar",
NULL,
};
return 0;
}

The issue here is that sparse-llvm thinks the array size is zero:

define i32 @main() {
L0:
  %names_0000026DE9D2DDA8. = alloca [0 x i8*]

It appears that sparse is correctly calculating the size of the array
in examine_node_type() in symbol.c, but by the time the symbol gets to
sparse-llvm the bit_size is somehow changed to -1. I haven't yet
tracked down where this is happening.

Thanks and Regards
Dibyendu
--
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