Displaying 2 results from an estimated 2 matches for "printmoduletyp".
Did you mean:
printmoduletypes
2007 Jan 16
0
[LLVMdev] llc c backend can produce code that doesn't compile on gcc 4.x
...ypes have to go through a pointer in
> C, we should get a dag of types, which is easy to emit.
A DAG traversal is already performed, but only for struct types. It
is implemented in CWriter::printContainedStructs (lib/Target/CBackend/
CBackend.cpp:1722).
The bug is in the calling function, printModuleTypes, which prints
typedefs for all named types before performing the dependency-
sensitive traversal. For array typedefs, this ordering is incorrect;
the element type must be defined first. But consider something like
[2 x { [2 x {int}] }]; these two stages must be interleaved.
The simplest s...
2007 Jan 15
2
[LLVMdev] llc c backend can produce code that doesn't compile on gcc 4.x
On Mon, 15 Jan 2007, Nick Lewycky wrote:
> Eric van Riet Paap wrote:
>> *testme.cbe.c:106: error: array type has incomplete element type*
>
> The problem code boils down to:
>
> /* Structure forward decls */
> struct l_structtype_s;
>
> /* Typedefs */
> typedef struct l_structtype_s l_fixarray_array3[3];
>
> which is illegal C, but perfectly valid C++,