public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Internal error in egcs-1.0.1 on Alpha/Linux
@ 1998-02-11  6:50 Michael Alan Dorman
  1998-02-11 16:33 ` H.J. Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Alan Dorman @ 1998-02-11  6:50 UTC (permalink / raw)
  To: egcs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Internal error in egcs-1.0.1 on Alpha/Linux
  1998-02-11  6:50 Internal error in egcs-1.0.1 on Alpha/Linux Michael Alan Dorman
@ 1998-02-11 16:33 ` H.J. Lu
  0 siblings, 0 replies; 2+ messages in thread
From: H.J. Lu @ 1998-02-11 16:33 UTC (permalink / raw)
  To: Michael Alan Dorman; +Cc: egcs

> 
> 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
> 

I cannot duplicate it on alpha-unknown-linux-gnu. It may be
EV4 specific.

H.J.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-11 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-11  6:50 Internal error in egcs-1.0.1 on Alpha/Linux Michael Alan Dorman
1998-02-11 16:33 ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).