Mercurial > projects > ldc
diff dmd/mars.c @ 55:0ccfae271c45 trunk
[svn r59] Added support for C-style variadic functions. Currently only works on x86, x86-64 va_arg is broken in LLVM 2.1. PPC and PPC64 unknown.
Updates to runtime. Rebuild!
author | lindquist |
---|---|
date | Wed, 24 Oct 2007 22:18:06 +0200 |
parents | 0c77619e803b |
children | 70d6113eeb8c |
line wrap: on
line diff
--- a/dmd/mars.c Wed Oct 24 01:37:34 2007 +0200 +++ b/dmd/mars.c Wed Oct 24 22:18:06 2007 +0200 @@ -15,6 +15,7 @@ #include <assert.h> #include <limits.h> #include <string> +#include <vaarg.h> #if _WIN32 #include <windows.h> @@ -667,6 +668,10 @@ global.params.llvmArch = const_cast<char*>(e->Name); if (global.params.verbose || very_verbose) printf("Default target found: %s\n", global.params.llvmArch); + if (very_verbose) { + int X = sizeof(va_list); + printf("valist.sizeof = %d\n", X); + } } }