tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Tinycc from git still can't compile fossil-scm


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] Tinycc from git still can't compile fossil-scm
Date: Sat, 29 Mar 2014 23:46:26 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

> Errr.  I see you now fiddled with that on mob.  Commit c025478d7c03,
> rewriting va* to not use malloc.  That's completely wrong.  You've
> effectively changed the ABI of stdarg, and hence interoperability
> with every non-TCC compiler.  The public va_list on x86_64 _must_ be
> a pointer.

Actually sizeof(va_list) is 24 on x86_64 GCC although va_list is passed
as a pointer. So we should

typedef void *va_list[3];

and cast that to struct __va_list_struct as needed.

Best regards,

  Daniel



reply via email to

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