Branch: Tag:

2014-12-04

2014-12-04 19:27:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [amd64]: Fixed a few typos.

The code generator for F_ASSIGN_PRIVATE_TYPED_GLOBAL_AND_POP
was broken (generated code for F_ASSIGN_PRIVATE_TYPED_GLOBAL)
due to a cut-n-paste miss.

This caused some code in Roxen to fail.

Fixes [LysLysKOM 20929878].

3189:    add_reg_imm_reg( sp_reg, -sizeof(struct svalue), ARG3_REG );    amd64_call_c_function(assign_to_short_svalue);    /* pop stack if needed. */ -  if( a == F_ASSIGN_PRIVATE_GLOBAL_AND_POP ) +  if( a == F_ASSIGN_PRIVATE_TYPED_GLOBAL_AND_POP )    {    amd64_add_sp(-1);    /* this will either have assigned 0 or thrown an error.
3223:    mov_mem_reg( sp_reg, -8, P_REG_RAX );    mov_reg_mem( P_REG_RAX, P_REG_RBX, 0 );    -  if( a == F_ASSIGN_PRIVATE_GLOBAL_AND_POP ) +  if( a == F_ASSIGN_PRIVATE_TYPED_GLOBAL_AND_POP )    amd64_add_sp( -1 );    else if( c >= MIN_REF_TYPE )    add_mem_imm( P_REG_RAX, OFFSETOF(pike_string,refs), 1 );