Internal error in egcs-1.0.1 on Alpha/Linux

Michael Alan Dorman mdorman@boxster.law.miami.edu
Wed Feb 11 06:50:00 GMT 1998


When compiling the pilot-link suite using egcs-1.0.1 on a glibc2/EV4
system, I got the following error:

gcc -I../include -I./../include -g -O2 -Wall -c -DPIC syspkt.c
syspkt.c: In function `sys_WriteMemory':
syspkt.c:392: internal error--unrecognizable insn:
(insn 318 313 314 (set (reg:DI 6 $6)
        (plus:DI (reg:DI 30 $30)
            (const_int 65616))) -1 (nil)
    (nil))
gcc: Internal compiler error: program cc1 got fatal signal 6

The function in question reads:

int sys_WriteMemory(int sd, unsigned long addr, unsigned long len, void * src)
{
  int result;
  unsigned char buf[0xffff];
  unsigned long todo, done;
  
  
  done = 0;
  do {
    todo = len;
    if (todo>256)
      todo = 256;

    buf[0] = 0;
    buf[1] = 0;
    buf[2] = 0;
    buf[3] = 0;
  
    buf[4] = 0x02;
    buf[5] = 0; /*gapfil*/

  
    set_long(buf+6, addr);
    set_short(buf+10, len);
    memcpy(buf+12, ((char *)src)+done, todo);
  
    pi_write(sd, buf, len+12);
  
    result = pi_read(sd, buf, 6);
  
    if (result<0)
      return done;
   
    if ((buf[4] == 0x82) && ((unsigned int)result == todo+6)) {
      ;
    } else {
      return done;
    }
  } while (done < len);
  return done;
}

Please let me know if I can furnish you with additional information.

Mike.
-- 
Michael Alan Dorman               |     E-Mail: mdorman@law.miami.edu
Network Administrator             |             Phone: (305) 284-2463
University of Miami School of Law |               Fax: (305) 284-3753



More information about the Gcc mailing list