3.1.2. Disable kernel compiler optimizations
O=0 is an impossible dream, O=2 being the default.
So get ready for some weird jumps, and <value optimized out> fun. Why, Linux, why.
The -O level of some other userland content can be controlled as explained at: Optimization level of a build.