BTW, I believe the crash seen by Liāu,Kiong-Gē 廖宮毅 <gongyi.liao <at> gmail.com> is the same as I see because the
 
  #pragma GCC diagnostic
 
stuff confuses the check for NULL pointer gcc_jit_global_set_initializer
 
See my other reply to this bug for a minimal C program that demonstrates the issue with this placement of #pragma and a sed script that fixes up the order.