[CIL users] rmtmps module bug?

2011-02-21 Thread Foivos Zakkak
Hello list, i noticed that given the following code struct my_struct { uint64_t field1 ; uint64_t field2 ; }; extern struct my_struct my_var ; the module won't mark the "struct my_struct" type definition as referenced after visiting "extern struct my_struct my_var ;" as a result the type

Re: [CIL users] Arrays with no constant dimensions as arguments

2011-01-19 Thread Foivos Zakkak
Hello again, I also noticed that neither the following example is supported. float (**myA)[DIM] = (float (**)[])A; it throughs "Error: Length of array is not a constant: DIM" but the same declaration is fine with gcc. Thank you Zakkak Foivos On 01/19/2011 09:52 AM, Foivos Za

[CIL users] Arrays with no constant dimensions as arguments

2011-01-19 Thread Foivos Zakkak
Hello, my subject may not be that clear and because i might not be able to explain it as well i'll give an example that gcc successfully compiles but CIL fails to parse. void foo(int DIM, int *A[DIM][DIM]) { } as you can see DIM is an argument of function foo and is not defined by #define (so it