On Fri, May 12, 2017 at 08:40:11AM +0000, avih wrote: > [3] discussion about tcc's stdarg.h:
> <avih> dalias: so tcc now works with musl. i still have an issue though if > stdio.h (possibly others too) come before stdarg.h in the program. tcc has > its own prioritized include dirs with stdarg.h. i'm trying to figure out > musl's expectations with regards to this. i'm looking at bits/alltypes.h, > does musl expects the compiler to have an intrinistic define of > __DEFINED_va_list or __DEFINED___isoc_va_list ? FWIIW you can also look at the same kind of discussion I had with with Rich Felker (dalias) in http://www.openwall.com/lists/musl/2014/08/15/8 The "implicit -D__DEFINED_va_list" hack works for Pcc with musl, at least on i386. I do not seem to need any such tweak for tcc+musl on i386 but otoh did not test with the latest versions. Tcc on x86_64 had to use "-D__DEFINED_va_list -D__isoc_va_list=va_list -D__DEFINED___isoc_va_list". Cheers, Rune _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
