Displaying 4 results from an estimated 4 matches for "structtype_s".
Did you mean:
structtype
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 elemen...
2006 Sep 20
0
[LLVMdev] bug? c backend produces code rejected by gcc4.0.1: array type has incomplete element type
...the same problem. If not, then please
create a new bug report.
-bw
On 9/20/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 wi...
2006 Sep 20
0
[LLVMdev] bug? c backend produces code rejected by gcc4.0.1: array type has incomplete element type
...e .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 Developers mailing list
>...
2007 Jan 15
2
[LLVMdev] llc c backend can produce code that doesn't compile on gcc 4.x
...n reported 4 month ago but is 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: warnin...