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

Ralf Baechle ralf@uni-koblenz.de
Mon Aug 12 15:15:00 GMT 2002


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



More information about the Gcc mailing list