[LLVMdev] Experimental fixes to CBackend
Dmitry N. Mikushin
maemarcus at gmail.com
Fri Aug 5 10:33:41 PDT 2011
Hi,
Please see the collection of test cases attached. To build everything
execute make in the top directory. Files with logs show how
compilation fails/succeeds, depending on patched/unpatched version of
llvm.
Could we setup this test suite as a regular test for C backend?
Thanks,
- D.
2011/8/5 Dmitry N. Mikushin <maemarcus at gmail.com>:
> Hi,
>
> LLVM C backend as of revision 136600 suffers from the following issues:
>
> * Forward structs declarations block is missing (it was there
> previously, why was it removed?)
> * Anonymous container structs are not generated for array types,
> resulting into declarations being placed directly into functions
> prototypes (previously it was not happening as well)
>
> I'm not very familiar with llvm internals, but tried by best to fix
> the problems. Please see proposed patches in attachment. Briefly, I'm
> creating fictive StructType for each ArrayType and slightly changing
> logic of anonymous structs definition to account the special case of
> ArrayType-s.
>
> - D.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbe_tests.tar.gz
Type: application/x-gzip
Size: 33710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110805/64087515/attachment.bin>
More information about the llvm-dev
mailing list