[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Dec 8 21:37:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
This

char *
my_bcopy(register char *from,register char *to,register I32 len) 
{
    char *retval = to;

    if (from - to >= 0) { 
        while (len--)
            *to++ = *from++;
    }    
    else {
        to += len; 
        from += len; 
        while (len--)
            *(--to) = *(--from);
    }    
    return retval;
}

may be miscompiled.



More information about the Gcc-bugs mailing list