But I failed to compile the same program in xTimeComposer 13.
Then I found the error comes from global unsafe pointer to interface, for example
Code: Select all
extern client mii_if * unsafe xtcp_i_mii;
void xtcp(chanend xtcp[n], size_t n, client mii_if ?i_mii, ...)
{
....
unsafe { xtcp_i_mii = (client mii_if * unsafe) (&i_mii); } //This cause compiling error!!!
...
}
Code: Select all
...
xcc1: internal compiler error
Failed in z:/buildslave/swnb/tools/win764_nightly_ent13/build/sb/tools_xcc1_c_llvm/FrontEnd/Checker/check_chan_usage.c, line 757
state->currentInterfaceEnd != (-1)
For bug reporting instructions, please see:
...