Changeset 895 for trunk

Show
Ignore:
Timestamp:
01/22/11 23:49:35 (1 year ago)
Author:
walter
Message:

fix regs destroyed by function call

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/backend/cod1.c

    r887 r895  
    14891489 
    14901490#ifdef DEBUG 
    1491   if (debugw) 
     1491    if (debugw) 
    14921492        printf("+scodelem(e=%p *pretregs=%s keepmsk=%s constflag=%d\n", 
    14931493                e,regm_str(*pretregs),regm_str(keepmsk),constflag); 
     
    28222822        else if (!tyfunc(s->ty()) || !(config.flags4 & CFG4optimized)) 
    28232823            // so we can replace func at runtime 
    2824             c1 = getregs(~fregsaved & (mBP | ALLREGS | mES)); 
     2824            c1 = getregs(~fregsaved & (mBP | ALLREGS | mES | XMMREGS)); 
    28252825        else 
    2826             c1 = getregs(~s->Sregsaved & (mBP | ALLREGS | mES)); 
     2826            c1 = getregs(~s->Sregsaved & (mBP | ALLREGS | mES | XMMREGS)); 
    28272827        if (strcmp(s->Sident,"alloca") == 0) 
    28282828        {