Re: Linux kernel support -O0 optimization flag?

2013-04-24 Thread Pavel Machek
On Mon 2013-04-15 13:16:36, richard -rw- weinberger wrote: > On Mon, Apr 15, 2013 at 9:58 AM, Ley Foon Tan wrote: > > > > > > Change KBUILD_CFLAGS to -O0 in Makefile and got the compilation error as > > below. > > Is the Linux kernel support -O0 optimization flag

Re: Linux kernel support -O0 optimization flag?

2013-04-24 Thread Pavel Machek
On Mon 2013-04-15 13:16:36, richard -rw- weinberger wrote: On Mon, Apr 15, 2013 at 9:58 AM, Ley Foon Tan lf...@altera.com wrote: Change KBUILD_CFLAGS to -O0 in Makefile and got the compilation error as below. Is the Linux kernel support -O0 optimization flag? No. If I'm not mistaken

Re: Linux kernel support -O0 optimization flag?

2013-04-16 Thread Ley Foon Tan
On Mon, 2013-04-15 at 13:16 +0200, richard -rw- weinberger wrote: > No. If I'm not mistaken we need this to make sure that the compiler > inlines some functions. > > In your case the compiler failed to compute the BUILD_BUG() macro correctly. > It depends also on optimization. > Thank you. So,

Re: Linux kernel support -O0 optimization flag?

2013-04-16 Thread Ley Foon Tan
On Mon, 2013-04-15 at 13:16 +0200, richard -rw- weinberger wrote: No. If I'm not mistaken we need this to make sure that the compiler inlines some functions. In your case the compiler failed to compute the BUILD_BUG() macro correctly. It depends also on optimization. Thank you. So, the

Re: Linux kernel support -O0 optimization flag?

2013-04-15 Thread richard -rw- weinberger
On Mon, Apr 15, 2013 at 9:58 AM, Ley Foon Tan wrote: > > > Change KBUILD_CFLAGS to -O0 in Makefile and got the compilation error as > below. > Is the Linux kernel support -O0 optimization flag? No. If I'm not mistaken we need this to make sure that the compiler inlines some func

Linux kernel support -O0 optimization flag?

2013-04-15 Thread Ley Foon Tan
Change KBUILD_CFLAGS to -O0 in Makefile and got the compilation error as below. Is the Linux kernel support -O0 optimization flag? Note, I have tried 2 architecture compilers and got the same error. In function 'zap_pmd_range', inlined from 'zap_pud_range' at mm/memory.c:1288:8

Linux kernel support -O0 optimization flag?

2013-04-15 Thread Ley Foon Tan
Change KBUILD_CFLAGS to -O0 in Makefile and got the compilation error as below. Is the Linux kernel support -O0 optimization flag? Note, I have tried 2 architecture compilers and got the same error. In function 'zap_pmd_range', inlined from 'zap_pud_range' at mm/memory.c:1288:8

Re: Linux kernel support -O0 optimization flag?

2013-04-15 Thread richard -rw- weinberger
On Mon, Apr 15, 2013 at 9:58 AM, Ley Foon Tan lf...@altera.com wrote: Change KBUILD_CFLAGS to -O0 in Makefile and got the compilation error as below. Is the Linux kernel support -O0 optimization flag? No. If I'm not mistaken we need this to make sure that the compiler inlines some functions