[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] [PATCH 05/11] Always pass a va_list as the last arg of call_
From: |
Will Newton |
Subject: |
[Gcl-devel] [PATCH 05/11] Always pass a va_list as the last arg of call_proc_new |
Date: |
Wed, 11 Jun 2014 17:27:18 +0100 |
From: Will Newton <address@hidden>
On some architectures, e.g. aarch64, va_list is not a pointer
type. In this case we need to actually pass an object of type
va_list rather than zero or the compiler will emit an error.
---
gcl/cmpnew/gcl_cmpcall.lsp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcl/cmpnew/gcl_cmpcall.lsp b/gcl/cmpnew/gcl_cmpcall.lsp
index 6fa3184..f9f1584 100755
--- a/gcl/cmpnew/gcl_cmpcall.lsp
+++ b/gcl/cmpnew/gcl_cmpcall.lsp
@@ -526,10 +526,10 @@
(write-to-string (argsizes args type 0));FIXME
",(void **)(void *)&Lnk" num "," (new-proclaimed-argd args
type)
",first,ap);va_end(ap);return V1;}")
- (wt "(){" d "V1=(" d ")call_proc_new(" (vv-str (add-object name))
"," (if clp "1" "0") ","
+ (wt "(){" d "V1;va_list ap;V1=(" d ")call_proc_new(" (vv-str
(add-object name)) "," (if clp "1" "0") ","
(write-to-string (argsizes args type 0));FIXME
",(void **)(void *)&Lnk" num "," (new-proclaimed-argd args type)
- ",0,0);return V1;}")))))
+ ",0,ap);return V1;}")))))
(setq name (function-string name))
(if (find #\/ name) (setq name (remove #\/ name)))
(wt " /* " name " */")))
--
1.9.3
- [Gcl-devel] [PATCH 00/11] Add support for AArch64, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 01/11] config.{sub, guess}: Update to latest versions of GNU config, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 03/11] Add support for AArch64, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 04/11] Reorder code to avoid problems with dis-asm.h defining DEFUN., Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 02/11] o/main.c: Ensure cs_org is always pointer aligned, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 06/11] Check for preceding NULL in find_init_name1, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 07/11] Fix handling of varargs in sSuniversal_error_handler, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 05/11] Always pass a va_list as the last arg of call_proc_new,
Will Newton <=
- [Gcl-devel] [PATCH 10/11] Reduce threshold for increasing maxpage, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 09/11] Avoid looking up dynamic symbols in the executable, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 08/11] Handle dladdr failure correctly, Will Newton, 2014/06/11
- [Gcl-devel] [PATCH 11/11] Hack to disable x86 floating point code, Will Newton, 2014/06/11
- Re: [Gcl-devel] [PATCH 00/11] Add support for AArch64, Camm Maguire, 2014/06/11