Hi. This patch fixes the segfault when using -flto with libgccjit (bug 111396). You mentioned in bugzilla that this didn't fix the reproducer for you, but it does for me. At first, the test case would not pass, but running "make install" made it pass. Not sure if this is normal. Could you please check if this fixes the issue on your side as well? Since this patch changes files outside of gcc/jit, what tests should I run to make sure it didn't break anything? Thanks for the review.