search for: fixarray_array3

Displaying 4 results from an estimated 4 matches for "fixarray_array3".

2006 Sep 20
4
[LLVMdev] bug? c backend produces code rejected by gcc4.0.1: array type has incomplete element type
The C backend can currently (recent head) produce code with such patterns: /* Global Declarations */ /* Structure forward decls */ struct l_structtype_s; /* Typedefs */ typedef struct l_structtype_s l_fixarray_array3[3]; /* problematic declaration */ typedef struct l_structtype_s l_structtype_s; /* Structure contents */ struct l_structtype_s { int field0; }; gcc 4.0.1 will reject this with example.c:7: error: array type has incomplete element type this kind of code was accepted by previous versions of gc...
2006 Sep 20
0
[LLVMdev] bug? c backend produces code rejected by gcc4.0.1: array type has incomplete element type
.../06, Samuele Pedroni <pedronis at strakt.com> wrote: > The C backend can currently (recent head) produce code with such patterns: > > /* Global Declarations */ > /* Structure forward decls */ > struct l_structtype_s; > > /* Typedefs */ > typedef struct l_structtype_s l_fixarray_array3[3]; /* problematic > declaration */ > typedef struct l_structtype_s l_structtype_s; > > /* Structure contents */ > struct l_structtype_s { > int field0; > }; > > gcc 4.0.1 will reject this with > > example.c:7: error: array type has incomplete element type > &g...
2006 Sep 20
0
[LLVMdev] bug? c backend produces code rejected by gcc4.0.1: array type has incomplete element type
...please file it (including the .ll file) in bugzilla. Thanks! -Chris > regards. > > PS: This code produces such a pattern through llvm-as, and llc -march=c: > > target endian = little > target pointersize = 32 > target triple = "i686-apple-darwin8.7.1" > > %fixarray_array3 = type [3 x %structtype_s] > %structtype_s = type { int } > > int %witness(%fixarray_array3* %p) { > %q = getelementptr %fixarray_array3* %p, uint 0, uint 0, uint 0 > %v = load int* %q > ret int %v > } > _______________________________________________ > LLVM D...
2007 Jan 15
2
[LLVMdev] llc c backend can produce code that doesn't compile on gcc 4.x
...none the less a somewhat serious one. Below I have pasted the test case and output of the issue running on my ppc machine. thank you Eric pb:~ eric$ cat testme.ll;llvm-as -f testme.ll;llc -march=c -f testme.bc;gcc -c testme.cbe.c ;gcc --version;llc --version %structtype_s = type { i32 } %fixarray_array3 = type [3 x %structtype_s] define i32 %witness(%fixarray_array3* %p) { %q = getelementptr %fixarray_array3* %p, i32 0, i32 0, i32 0 %v = load i32* %q ret i32 %v } testme.cbe.c:106: error: array type has incomplete element type testme.cbe.c:119: warning: conflicting types for built-i...