It seems that cilly.asm.exe doesn't translate the
Arrags of Length zero of GCC extension option.
My example is following:
struct line* thisline=(struct line*)malloc(sizeof
The command I used to compile the above is the
$tmcc -E -B Arrays_Zero.c > Arrays_Zero.i
$cilly.asm.exe --out Arrays_Zero.cil.c Arrays_Zero.i
$tmcc -g -c Arrays_Zero.cil.c -o Arrays_Zero.o
The cil I used is the newest version.
The error is caused by the third command and it is the
"Array_Zero.c" line:6 error: the size of an array
must be greater than zero
tmcc.exe: tmcfe command failed
I wonder whether or not the cil can translate zero
length arrays of gcc extension options and How I can
Thanks a lot!