> (Use your imagination, preferably in C++). So GCC had a policy change
> (after many years!) and now it removes empty loops.
>
> I don't know if it removes _explicit_ empty loops though.
It does. A few kernel drivers got burned by that.
It will optimise
int l=1000;
while(l--);
but not
volatile int l=1000;
while(l--);
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:24 EST