[pcre-dev] [Bug 2667] Build failure with jit on mips{32,64}r…

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumptes vells: [pcre-dev] [Bug 2667] New: Build failure with jit on mips{32, 64}r6
Assumpte: [pcre-dev] [Bug 2667] Build failure with jit on mips{32,64}r6
https://bugs.exim.org/show_bug.cgi?id=2667

--- Comment #2 from Fabrice Fontaine <fontaine.fabrice@???> ---
(In reply to Zoltan Herczeg from comment #1)
> Yes, those instructions are removed on mips r6 which is backward
> incompatible.
>
> Please check this PR and let me know if it fixes your issue:
> https://github.com/zherczeg/sljit/pull/97
>
> This is a speculative fix, since I don't have a mips r6 gcc/qemu toolchain
> at the moment, but it would be good to have one eventually. It looks like
> mips r6 has been released 5 years ago, so these might be available.


I build tested your PR on mips64 and it fails on:

In file included from src/sljit/sljitLir.c:2111,
                 from src/pcre2_jit_compile.c:79:
src/sljit/sljitNativeMIPS_common.c: In function ‘sljit_emit_cmov’:
src/sljit/sljitNativeMIPS_common.c:2253:9: warning: implicit declaration of
function ‘sljit_emit_cmov_generic’; did you mean ‘sljit_emit_cmov’?
[-Wimplicit-function-declaration]
  return sljit_emit_cmov_generic(compiler, type, dst_reg, src, srcw);
         ^~~~~~~~~~~~~~~~~~~~~~~
         sljit_emit_cmov


This failure can be fixed by updating sljitLir.c to define
sljit_emit_cmov_generic if SLJIT_MIPS_REV < 6.

--
You are receiving this mail because:
You are on the CC list for the bug.