From: Pavel Machek <pavel@denx.de>
To: richard -rw- weinberger <richard.weinberger@gmail.com>
Cc: Ley Foon Tan <lftan@altera.com>,
LKML <linux-kernel@vger.kernel.org>,
Kenneth Chong Yin Tan <cytan@altera.com>
Subject: Re: Linux kernel support -O0 optimization flag?
Date: Wed, 24 Apr 2013 10:29:38 +0200 [thread overview]
Message-ID: <20130424082934.GA9365@amd.pavel.ucw.cz> (raw)
In-Reply-To: <CAFLxGvw7Cj_wz_A9B+fBR6jYxi+73Ofh-PjUT=FC+iF0AkDQsQ@mail.gmail.com>
On Mon 2013-04-15 13:16:36, richard -rw- weinberger wrote:
> On Mon, Apr 15, 2013 at 9:58 AM, Ley Foon Tan <lftan@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.
>
> In your case the compiler failed to compute the BUILD_BUG() macro correctly.
> It depends also on optimization.
Actually... You probably could replace BUILD_BUG() with nop. Bugs are
not expected to happen, right? you'll probably hit something else...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2013-04-24 8:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 7:58 Ley Foon Tan
2013-04-15 11:16 ` richard -rw- weinberger
2013-04-16 6:10 ` Ley Foon Tan
2013-04-24 8:29 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130424082934.GA9365@amd.pavel.ucw.cz \
--to=pavel@denx.de \
--cc=cytan@altera.com \
--cc=lftan@altera.com \
--cc=linux-kernel@vger.kernel.org \
--cc=richard.weinberger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®