[Top][All Lists]

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

Re: [Tinycc-devel] __builtin_va_* builtins missing

From: Kamil Rytarowski
Subject: Re: [Tinycc-devel] __builtin_va_* builtins missing
Date: Mon, 12 Nov 2018 18:35:15 +0100
User-agent: Mozilla/5.0 (X11; NetBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 31.10.2018 21:22, Daniel Wingerd wrote:
> I'm working on getting musl to build using TCC and the first problem I
> encountered was that TCC is missing __builtin_va_* builtins.  I've
> tried adding it on my own and failed miserably since I don't really
> understand TCC's internals.  I do recognize the va_* macros are
> defined in include/stdarg.h but all the C compilers I've checked (even
> Watcom and PCC) define these as builtin functions so it only seems
> right that TCC follow suit instead of expecting special exceptions to
> be made for it (in every libc's stdarg.h).
> Explicitly, these need to be added into tcctok.h and implemented in
> tccgen.c in the unary() function.
> __builtin_va_start
> __builtin_va_arg
> __builtin_va_copy
> __builtin_va_end

Lack of these builtins is a hard blocker of getting tcc on NetBSD
(unless someone intends to skip using libc at all..).

> It shouldn't be a much effort for someone who knows the TCC internals
> since their behavior is clearly defined in TCC's include/stdarg.h.
> Is anyone willing to take up this task?

Probably nobody will do work instead of you.

> - Daniel
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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