Re: GCC still keeps empty loops? (was: [patch 4/21] fix ARCH_HAS_PREFETCH)

Ralf Baechle (ralf@uni-koblenz.de)
Mon, 12 Aug 2002 09:45:48 +0200


On Sun, Aug 11, 2002 at 09:07:18PM +0100, Jamie Lokier wrote:

> Unbelievably, 3.1 doesn't remove empty loops either.
> I think there's a case for a compiler flag, `-fremove-empty-loops'.

Indeed ... It's sad having to scatter ifdefs over the code just because
gcc lacks this optimization ...

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