On Sat, Sep 11, 2010 at 00:55, Venkatram Tummala <venkatram867@xxxxxxxxx> wrote: > Removing -O flag in the kernel makefile doesn't work. the kernel refuses to > boot if the optimization flag is disabled for kernel compilation. Till now, > nobody has been able to answer this correctly in this mailing list. > Specifically, how do we disable all compiler optimizations so that GDB > doesn't go nuts while debugging the kernel. Please let us know if anybody > knows a solution to the problem here. then make it lesser than current setting, e.g -O1 instead of -O2, -O2 instead of -O3. You might also try -O0. Also, watch out for things like loop unrolling, inlining threshold control etc. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ