From a328ce70ea6499239c47551f62b4428e556f52d3 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Sun, 23 Jun 2019 16:54:06 +0200 Subject: [PATCH] fix struct thread_state definition --- src/comp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comp.c b/src/comp.c index fe3fac606d9..b2a16d84e12 100644 --- a/src/comp.c +++ b/src/comp.c @@ -887,13 +887,13 @@ define_thread_state_struct (void) sizeof (struct thread_state) - offsetof (struct thread_state, m_handlerlist) - - sizeof (struct handler *)), + - sizeof (((struct thread_state *) 0)->m_handlerlist)), "pad1") }; comp.thread_state = gcc_jit_context_new_struct_type (comp.ctxt, NULL, - "thread_state", + "comp_thread_state", sizeof (fields) / sizeof (*fields), fields); comp.thread_state_ptr_type = -- 2.39.5