Subject: bug#47067: 28.0.50; [feature/native-comp] Crash while scrolling through dispnew.c

From: Eli Zaretskii <[email-masked]>
Date: Sun, 14 Mar 2021 13:39:24 +0200

> From: Pip Cet <[email-masked]>
> Date: Sun, 14 Mar 2021 08:06:30 +0000
> Cc: Andrea Corallo <[email-masked]>, [email-masked]
> 
> > Sorry, I don't understand: what is the procedure for testing this
> > patch?
> 
> - apply the patch
> - rebuild Emacs
> - remove the problematic file (but not necessarily any others)
> - rerun your recipe

Thanks.  After patching and rebuilding Emacs, compilation of
cc-engine.el fails with these error messages:

  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_call: mismatching types for argument 2 of function "_setjmp": assignment to param ret (type: unsigned int) from __builtin_frame_address ((unsigned int)0) (type: void *) 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_unary_op: NULL rvalue 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_block_end_with_conditional: NULL boolval 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_call: mismatching types for argument 2 of function "_setjmp": assignment to param ret (type: unsigned int) from __builtin_frame_address ((unsigned int)0) (type: void *) 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_unary_op: NULL rvalue 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_block_end_with_conditional: NULL boolval 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_call: mismatching types for argument 2 of function "_setjmp": assignment to param ret (type: unsigned int) from __builtin_frame_address ((unsigned int)0) (type: void *) 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_unary_op: NULL rvalue 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_block_end_with_conditional: NULL boolval 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_call: mismatching types for argument 2 of function "_setjmp": assignment to param ret (type: unsigned int) from __builtin_frame_address ((unsigned int)0) (type: void *) 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_unary_op: NULL rvalue 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_block_end_with_conditional: NULL boolval 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_call: mismatching types for argument 2 of function "_setjmp": assignment to param ret (type: unsigned int) from __builtin_frame_address ((unsigned int)0) (type: void *) 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_unary_op: NULL rvalue 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_block_end_with_conditional: NULL boolval 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_call: mismatching types for argument 2 of function "_setjmp": assignment to param ret (type: unsigned int) from __builtin_frame_address ((unsigned int)0) (type: void *) 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_context_new_unary_op: NULL rvalue 
  Warning (comp): D:\usr\bin\libgccjit-0.dll: error: gcc_jit_block_end_with_conditional: NULL boolval 
  Warning (comp): d:/gnu/git/emacs/native-comp/lisp/progmodes/cc-engine.el: Error: Internal native compiler error failing to compile function