Re: Building Kernel with -O0

From: Adrian Bunk
Date: Tue Sep 09 2008 - 12:06:45 EST

On Thu, Sep 04, 2008 at 10:50:53AM -0700, Keith A. Prickett wrote:
> It seems building with optimization
> level 0 should be a natural thing for kernel driver developers to do for
> debugging purposes.
> In summary: I want to compile with optimizations off and the compile is
> failing now when I try this. How can this be resolved?

There are several places in the kernel where we e.g. rely on gcc
removing dead code, and otherwise the linking of the kernel fails.

Compiling with -O0 never worked, and is not likely to ever work.

> Thanks in advance,
> Keith Prickett



"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at