Support struct arguments with stdarg.h
commit0ed7ba3f5e79f407a206b387079c9fd68327064b
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>
Tue, 28 Dec 2010 10:32:40 +0000 (28 19:32 +0900)
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>
Tue, 28 Dec 2010 10:32:40 +0000 (28 19:32 +0900)
tree1e1ddb5103cf8a90b8cef2b7c28eef1606ac4a41
parent07fd82b4113c9f912383dff448e3dd8b71179b7b
Support struct arguments with stdarg.h

- add __builtin_va_arg_types to check how arguments were passed
- move most code of stdarg into libtcc1.c
- remove __builtin_malloc and __builtin_free
- add a test case based on the bug report
  (http://www.mail-archive.com/tinycc-devel@nongnu.org/msg03036.html)
include/stdarg.h
lib/libtcc1.c
tccgen.c
tcctok.h
tests/tcctest.c