Subject: Re: codegen bug, more info
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: None <mcmahill@mtl.mit.edu>
List: port-sparc
Date: 08/08/1999 21:25:17
On Sun, 8 Aug 1999, der Mouse wrote:

> A little while ago, I mentioned a possible codegen bug in egcs on the
> sparc (different from all other sparc codegen bugs I am aware of).

> 
> I'd appreciate it if someone else could try this.  While similar
> conditions (identical hardware and kernel, differing userland) would of
> course be preferable, I'd be interested in results from anyone.  I'd be
> especially interested to hear if this is for real in 1.4 but has been
> fixed in something later.


on my Sparc IPX.  This is 1.4 everything plus the 2 patches to 1.4 from
ftp.netbsd.org:

dan@cowboy-burt 185 % uname -a
NetBSD cowboy-burt 1.4 NetBSD 1.4 (COWBOY-BURT) #7: Wed Jul 14 16:34:06
EDT 1999     dan@cowboy-burt:/usr/src/sys/arch/sparc/compile/COWBOY-BURT
sparc
dan@cowboy-burt 186 % gcc -o egcs-bug egcs-bug.c
dan@cowboy-burt 187 % ./egcs-bug 
start
wrap(0) -> 1
Bus error (core dumped)
dan@cowboy-burt 188 % gcc -O -o egcs-bug egcs-bug.c
dan@cowboy-burt 189 % ./egcs-bug
start
wrap(0) -> 1
wrap(1) -> 0
dan@cowboy-burt 190 % gcc -O2 -o egcs-bug egcs-bug.c
dan@cowboy-burt 191 % ./egcs-bug
start
wrap(0) -> 1
wrap(1) -> 0
dan@cowboy-burt 192 % 

-Dan