Branch: Tag:

2015-05-23

2015-05-23 22:38:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [sparc]: Added kludge to fix the code-generator for sparc.

Some of the branch opcodes were broken on sparc when PIKE_DEBUG
wasn't active. This is a temporary workaround.

95:   #define LOCAL_VAR(X) X   #endif    + #ifndef MACHINE_CODE_FORCE_FP + #define MACHINE_CODE_FORCE_FP() 0 + #endif +    #ifndef OVERRIDE_JUMPS      #undef GET_JUMP
1307:       /* Jumps */   OPCODE0_BRANCH(F_BRANCH, "branch", 0, { +  MACHINE_CODE_FORCE_FP();    DO_BRANCH();   });   
1324:    OPCODE0_TAILBRANCH(F_BRANCH_WHEN_ZERO, "branch if zero", I_UPDATE_SP, {    if(!UNSAFE_IS_ZERO(Pike_sp-1))    { +  MACHINE_CODE_FORCE_FP();    DONT_BRANCH();    }else{    DO_BRANCH();