The frame pointer actually has additional purposes, honesty, you should reconsider using all those optimizations, some levels of optimizations may be dangerous.
In the kernel, inline assembly is often used.. it may even rely on the stack pointer being present.
Unless you have a deep intimate knowledge of compiler mechanics and kernel internals.. stop recommending such things vermaden.
|