]> git.eshelyaron.com Git - emacs.git/commitdiff
fix struct thread_state definition
authorAndrea Corallo <andrea_corallo@yahoo.it>
Sun, 23 Jun 2019 14:54:06 +0000 (16:54 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:44 +0000 (11:33 +0100)
src/comp.c

index fe3fac606d933f00d46a119a434ab7f5a7862a67..b2a16d84e12c67186ab2107f676c9a54e924e6a9 100644 (file)
@@ -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 =