Hi,

We have a piece of code with a global var. looking like :

tSiaTableField tmnxRadProxSrvTableLeafOvr[] =
{
     { .leafId = LEAF_tmnxRadProxSrvRowStatus , .node.ranges = 
ROWSTATUS_RESTRICTED, },
     { .leafId = LEAF_tmnxRadProxSrvAdminState, .node.ranges = 
ADMINSTATE_NO_NOOP,   },
     { }
};

It is the intention to have a global array with 3 elements.

However, cil converts it to :

tSiaTableField tmnxRadProxSrvTableLeafOvr[2]  = {      {3, 0U, (unsigned 
char)0, {0, 0U, 0U, "1,4,6", 0U, 0, {0}}},
         {5, 0U, (unsigned char)0, {0, 0U, 0U, "2-3", 0U, 0, {0}}}};

Which only has 2 elements.

Under gcc, without passing it through cil, the result is 3 elements.

is this the expected behavior, and can we add a warning/error in the cil 
source somewhere in case it drops an element?

Thanks,
Dany

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to