Re: 8259A initialization with AMD SC520 chip (586)

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue May 23 2000 - 12:31:02 EST


> (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