Re: Bad patch to schedule()

Roland McGrath
2005-03-13T05:19:43Z

> called from schedule(). The problem with this is that it completely
> messes up the register allocation for i386 schedule() because it
> does long long arithmetic. This causes gcc to spill everything
> else because it needs four registers, and i386 only has 6 usable
> ones.

The generated code I've seen does not bear out this claim. If you are
using ancient compilers and they produce poor code, then it is time to move
on. If you are using some recent gcc, then you'll have to show the
concrete details since they don't match what I see.

Thanks,
Roland