Victor <vic7tor@xxxxxxxxx> writes: > I want to build the linux kernel at O0 optimize level. The first problem > that I face was something about constant. You will face many other problems once you solve that one. This is not a gcc issue; the Linux kernel source code is written such that it must be compiled with optimization in order to work correctly. > Because I want to debug the linux kernel, how can compile the test > program above don't use O1 O2 O3. You can debug code compiled with optimization, it's just more annoying. Ian