From: Shawn Jin <shawnxjin@gmail.com>
To: Nicholas Mc Guire <der.herr@hofr.at>
Cc: ppcdev <linuxppc-dev@ozlabs.org>
Subject: Re: How to build the kernel without any optimization?
Date: Mon, 23 Aug 2010 11:18:44 -0700 [thread overview]
Message-ID: <AANLkTimUj-=a5-5kLhNxwBARK9p3+Yiu5CF_BjbH6KpB@mail.gmail.com> (raw)
In-Reply-To: <20100821073116.GA1597@opentech.at>
>> I already added the following to arch/powerpc/Makefile.
>>
>> # Prevent GDB from jumping around in the code when trying to single step
>> ifeq ($(CONFIG_DEBUG_KERNEL),y)
>> KBUILD_CFLAGS =A0 =A0 =A0 =A0 =A0 +=3D -fno-schedule-insns -fno-schedule=
-insns2
>> endif
>>
>
> much of the kernel can not be build without optimization - what you
> can do though is slectively try to disable optimization for specific
> files by putting
>
> =A0CFLAGS_REMOVE_objfilenam.o =3D -SOME_OPT
>
> in the Makefile. I think that is safer than what you did above as this wo=
uld
> always depend on the order of options that ultimately get passed to gcc.
With this CLAGS_REMOVE, building the objfilenam.o uses only the
-SOME_OPT instead of the default CFLAGS defined? The most I found for
-SOME_OPT is the -pg.
Thanks,
-Shawn.
prev parent reply other threads:[~2010-08-23 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 6:59 How to build the kernel without any optimization? Shawn Jin
2010-08-21 7:31 ` Nicholas Mc Guire
2010-08-23 18:18 ` Shawn Jin [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='AANLkTimUj-=a5-5kLhNxwBARK9p3+Yiu5CF_BjbH6KpB@mail.gmail.com' \
--to=shawnxjin@gmail.com \
--cc=der.herr@hofr.at \
--cc=linuxppc-dev@ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).