Re: Bad patch to schedule()

From: Roland McGrath
Date: Sun Mar 13 2005 - 00:22:10 EST


> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/