Mercurial > hg > CbC > old > device
changeset 700:22e0330a6d5b
*** empty log message ***
author | kono |
---|---|
date | Mon, 22 Oct 2007 01:47:28 +0900 |
parents | 0bc5f2ff86cc |
children | bf4fd39737e9 |
files | .gdbinit mc-code-ia32.c |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.gdbinit Mon Oct 22 01:09:46 2007 +0900 +++ b/.gdbinit Mon Oct 22 01:47:28 2007 +0900 @@ -16,10 +16,9 @@ # r -s test/tmp7.c # r -s test/tmp6.c # r -s test/call.c -# r -s test/code-gen-all.c +r -s test/code-gen-all.c # r -s mc-code-powerpc.c # r -s test/strinit.c # r -s test/arg.c # r -s -DINLINE=inline test/strinit.c # r -s test/fact-a.c -r -s test/obsf.c
--- a/mc-code-ia32.c Mon Oct 22 01:09:46 2007 +0900 +++ b/mc-code-ia32.c Mon Oct 22 01:47:28 2007 +0900 @@ -601,7 +601,7 @@ set_ireg(int reg,int mode) { if (!is_int_reg(reg)) error(-1); - if (creg > 0 && reg!=creg) { + if (reg!=creg) { #ifdef __APPLE__ if (regs[reg]==PTRC_REG) clear_ptr_cache_reg(reg); @@ -612,7 +612,7 @@ printf("\tmovl %s,%s\n",reg_name[ireg],reg_name[reg]); } } - if (regs[creg]!=REG_VAR) free_register(creg); + if (creg>0 && regs[creg]!=REG_VAR) free_register(creg); if (creg==lreg) lreg = 0; } creg = ireg = reg;