> 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

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

Reply via email to