aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2019-05-24 13:07:11 +0200
committerAndrea Corallo2020-01-01 11:33:37 +0100
commitf4d2f75a0782c53bfb09b70bc75de3c974ae5002 (patch)
tree628505d34dd5dc09af234fead0cc8cffd86f912c /src
parentb21539f6083bb7be6ce3b7d7701b270bc0bf384b (diff)
downloademacs-f4d2f75a0782c53bfb09b70bc75de3c974ae5002.tar.gz
emacs-f4d2f75a0782c53bfb09b70bc75de3c974ae5002.zip
add void ptr
Diffstat (limited to 'src')
-rw-r--r--src/comp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp.c b/src/comp.c
index 53cb54cba86..657fb2630ed 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -91,6 +91,7 @@ typedef struct {
91 gcc_jit_context *ctxt; 91 gcc_jit_context *ctxt;
92 gcc_jit_type *lisp_obj_type; 92 gcc_jit_type *lisp_obj_type;
93 gcc_jit_type *int_type; 93 gcc_jit_type *int_type;
94 gcc_jit_type *void_ptr_type;
94 gcc_jit_type *ptrdiff_type; 95 gcc_jit_type *ptrdiff_type;
95 gcc_jit_function *func; /* Current function being compiled */ 96 gcc_jit_function *func; /* Current function being compiled */
96 gcc_jit_function *Ffuncall; /* Current function being compiled */ 97 gcc_jit_function *Ffuncall; /* Current function being compiled */
@@ -1105,6 +1106,8 @@ init_comp (void)
1105#endif 1106#endif
1106 1107
1107 comp.int_type = gcc_jit_context_get_type(comp.ctxt, GCC_JIT_TYPE_INT); 1108 comp.int_type = gcc_jit_context_get_type(comp.ctxt, GCC_JIT_TYPE_INT);
1109 comp.void_ptr_type =
1110 gcc_jit_context_get_type(comp.ctxt, GCC_JIT_TYPE_VOID_PTR);
1108 1111
1109 enum gcc_jit_types ptrdiff_t_gcc; 1112 enum gcc_jit_types ptrdiff_t_gcc;
1110 if (sizeof (ptrdiff_t) == sizeof (int)) 1113 if (sizeof (ptrdiff_t) == sizeof (int))