[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Add support of musl-libc to tinycc

From: u-jps5
Subject: Re: [Tinycc-devel] Add support of musl-libc to tinycc
Date: Fri, 12 May 2017 11:38:17 +0200

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

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".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]