Mail Archives: djgpp/1998/06/09/20:59:01
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
- Raw text -