Hi,
I am using a cross compiler, to make a kernel for the i.mx6dl. If I set CONFIG_CC_OPTIMIZE_FOR_SIZE=y the compiler stops with an error. If I unset this option, the kernel will be compiled correcly.
| CC | drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.o |
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c: In function 'gckKERNEL_Dispatch':
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c:1160:9: error: 'node' may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1: all warnings being treated as errors
make[3]: *** [drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.o] Error 1
make[2]: *** [drivers/mxc/gpu-viv] Error 2
make[1]: *** [drivers/mxc] Error 2
make: *** [drivers] Error 2
Kernel: 3.0.35 from LTIB L3.0.35_4.1.0_130816
Compiler: gcc version 4.7.2 (Sourcery CodeBench Lite 2012.09-63)
Any Ideas how I can compile with this option?
Regards,
Timo