[pcre-dev] [Bug 2240] Failed build on MIPS ci20 with JIT sup…

Góra strony
Delete this message
Autor: admin
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 2240] Failed build on MIPS ci20 with JIT support
https://bugs.exim.org/show_bug.cgi?id=2240

--- Comment #2 from Jeffrey Walton <noloader@???> ---
It looks like the assembler was producing incorrect line numbers for its
messages.

The fix was to add braces for the case statement. That is, add open brace at
line 503 and close brace at 513:

   499  SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32
feature_type)
   500  {
   501          switch (feature_type) {
   502          case SLJIT_HAS_FPU:
   503  {
   504  #ifdef SLJIT_IS_FPU_AVAILABLE
   505                  return SLJIT_IS_FPU_AVAILABLE;
   506  #elif defined(__GNUC__)
   507                  sljit_sw fir;
   508                  asm ("cfc1 %0, $0" : "=r"(fir));
   509                  return (fir >> 22) & 0x1;
   510  #else
   511  #error "FIR check is not implemented for this architecture"
   512  #endif
   513  }
   514
   ...


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