Sender: nate AT cartsys DOT com Message-ID: <357DD8F1.A0F60C26@cartsys.com> Date: Tue, 09 Jun 1998 17:53:05 -0700 From: Nate Eldredge MIME-Version: 1.0 To: rudd AT cyberoptics DOT com CC: djgpp AT delorie DOT com Subject: Re: Possible gcc bug References: <357D578B DOT 1088A0F9 AT cyberoptics DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Eric Rudd wrote: > > I have isolated what I think is a register-allocation bug in gcc > v2.7.2.1 having to do with incorrect handling of extended asm. I would > appreciate feedback from others as to what is wrong here. The little > subroutine does nothing useful in its condensed form besides > illustrating the problem. I compiled with > > gcc -O2 -S bad.c -o bad.lst > > Attached to this message is the contents of "bad.lst". Compiling without > -O2 produces different code, but also incorrect. [snipped] Upgrade your GCC. It compiles correctly with GCC 2.8.1. -- Nate Eldredge nate AT cartsys DOT com