[Bug target/19558] openssl speed compiled with 20051020 gcc-4.0 (HEAD) segfaults

gj at pointblue dot com dot pl gcc-bugzilla@gcc.gnu.org
Fri Jan 21 10:08:00 GMT 2005


------- Additional Comments From gj at pointblue dot com dot pl  2005-01-21 10:07 -------
unsigned long bn_add_words (unsigned long *rp, unsigned long *ap, unsigned long 
*bp,int n) 
{ unsigned long ret,i; 
 
        if (n <= 0) return 0; 
 
        asm ( 
        "       subq    %2,%2           \n" 
        ".align 16                      \n" 
        "1:     movq    (%4,%2,8),%0    \n" 
        "       adcq    (%5,%2,8),%0    \n" 
        "       movq    %0,(%3,%2,8)    \n" 
        "       leaq    1(%2),%2        \n" 
        "       loop    1b              \n" 
        "       sbbq    %0,%0           \n" 
                : "+a"(ret),"+c"(n),"+r"(i) 
                : "r"(rp),"r"(ap),"r"(bp) 
                : "cc" 
        ); 
 
  return ret&1; 
} 
 
again. 
 
Probably bugzilla is mangling something. 
Just go to .i file and search for bn_add_words ;) 
 

-- 


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



More information about the Gcc-bugs mailing list