I am trying to compile Linux kernel with -O0 flag for debugging (to disable optimization like inline functions support in GCC otherwise I am getting random jumps/holes in stack-frames).
I did some googling and found few related posts but they were not very encouraging for this idea. Some of the said its not possible, others suggested that it may not be very useful. I also saw few patches (for ARM) floating in KGDB mailing list. Now I am little confused. Just wondering if anyone tried compiling latest kernel with -O0 flag.
My Linux version: Linux 3.0.1-rt11-svn9237 #2 PREEMPT RT Fri Dec 21 09:58:42 IST 2012 armv7l GNU/Linux
My GCC version: arm-none-linux-gnueabi-gcc-4.3.3