|
From: | Michael Matz |
Subject: | Re: [Tinycc-devel] Trouble on x86-64, not windows, not gcc |
Date: | Sun, 10 Jul 2016 19:26:09 +0200 (CEST) |
User-agent: | Alpine 2.20 (LSU 67 2015-01-07) |
Hi, On Sun, 10 Jul 2016, Michael Matz wrote:
TCC's handling of variable argument lists are spelled out in stdarg.h, with implementation in libtcc1.c. I think that for 64-bit machines, we should also check for clang, and then use clang-compatible definitions.
Oh, I forgot to expand here: the clang compatible definitions use the builtin type __builtin_va_list (like GCC). That ultimately is a struct type that's layout compatible with the va_list as defined in TCCs <stdarg.h>; or it better should be (I haven't checked the clang sources for this), otherwise compatibility between GCC and clang on Darwin would be broken.
Ciao, Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |