* Work around GCC PR99126 on all libgccjit < 11

* src/comp.c (Fcomp__compile_ctxt_to_file): Work around GCC
	PR99126 on all libgccjit < 11.
This commit is contained in:
Andrea Corallo 2021-03-07 19:48:04 +01:00
parent 948e6609b1
commit 38b4ac3e6b

View file

@ -4459,7 +4459,8 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
&& (defined (LIBGCCJIT_HAVE_gcc_jit_context_add_command_line_option) \
|| defined (WINDOWSNT))
Lisp_Object version = Fcomp_libgccjit_version ();
if (!NILP (version) && XFIXNUM (XCAR (version)) == 10)
if (NILP (version)
|| XFIXNUM (XCAR (version)) < 11)
gcc_jit_context_add_command_line_option (comp.ctxt,
"-fdisable-tree-isolate-paths");
#endif