]> git.eshelyaron.com Git - emacs.git/commitdiff
add void ptr
authorAndrea Corallo <andrea_corallo@yahoo.it>
Fri, 24 May 2019 11:07:11 +0000 (13:07 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:37 +0000 (11:33 +0100)
src/comp.c

index 53cb54cba8620369ffedd1ea4964b4aa79590b47..657fb2630edf3263524b3b3e0bc9253802ab6409 100644 (file)
@@ -91,6 +91,7 @@ typedef struct {
   gcc_jit_context *ctxt;
   gcc_jit_type *lisp_obj_type;
   gcc_jit_type *int_type;
+  gcc_jit_type *void_ptr_type;
   gcc_jit_type *ptrdiff_type;
   gcc_jit_function *func; /* Current function being compiled  */
   gcc_jit_function *Ffuncall; /* Current function being compiled  */
@@ -1105,6 +1106,8 @@ init_comp (void)
 #endif
 
   comp.int_type = gcc_jit_context_get_type(comp.ctxt, GCC_JIT_TYPE_INT);
+  comp.void_ptr_type =
+    gcc_jit_context_get_type(comp.ctxt, GCC_JIT_TYPE_VOID_PTR);
 
   enum gcc_jit_types ptrdiff_t_gcc;
   if (sizeof (ptrdiff_t) == sizeof (int))