Re: [PATCH] PR 64722: fix corruption of %ebx on 32-bit i386 with libgccjit

2015-01-22 Thread Richard Henderson
On 01/22/2015 09:34 AM, David Malcolm wrote: gcc/ChangeLog: PR 64722 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the latter may be affected by the former (e.g. on i686). Ok. r~

[PATCH] PR 64722: fix corruption of %ebx on 32-bit i386 with libgccjit

2015-01-22 Thread David Malcolm
Much of the jit testsuite currently segfaults on i686, after two in-process iterations. In odd-numbered iterations, gcc_jit_context_compile generates correct code, but on even-numbered iterations, the generated code trashes the %ebx register, leading to SIGSEGV back at the call site when setting

Re: [PATCH] PR 64722: fix corruption of %ebx on 32-bit i386 with libgccjit

2015-01-22 Thread Jakub Jelinek
On Thu, Jan 22, 2015 at 12:34:37PM -0500, David Malcolm wrote: Much of the jit testsuite currently segfaults on i686, after two in-process iterations. In odd-numbered iterations, gcc_jit_context_compile generates correct code, but on even-numbered iterations, the generated code trashes the