From: Hagen Paul Pfeifer <hagen@jauu.net>
To: Renato Westphal <renatowestphal@gmail.com>
Cc: Zhihua Che <zhihua.che@gmail.com>,
Randy Dunlap <rdunlap@xenotime.net>,
linux-kernel@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Subject: Re: How can I turn off/disable -O2/-Os optimization?
Date: Sun, 6 May 2012 15:28:27 +0200 [thread overview]
Message-ID: <20120506132827.GB3824@nuttenaction> (raw)
In-Reply-To: <CAChaegmgw_8KsmOAt=WpHN6KTa9qkgh-EmHC-PGqCQxGRQ2U6w@mail.gmail.com>
* Renato Westphal | 2012-05-05 23:00:48 [-0300]:
>>> You could try the new CONFIG_READABLE_ASM patch:
>>> http://marc.info/?l=linux-kernel&m=133296079716268&w=2
Maybe remove "-Os" on a global basis is not wanted nor required. Maybe a per
directory, per file or per function basis may superior!
make DISABLE_OPTIMIZATION=net/sched/sch_api.c
But still all core constructs defined in top level header files must be
compatible for directory/file basis to be build with no optimization at all.
One way to un-optmize fine-granular is GCC's optmize pragma [1].
Hagen
PS: such a functionality may be convenient for perf probe too! (to hook into
probepoints which are currently optimized out)
[1] http://gcc.gnu.org/onlinedocs/gcc/Function-Specific-Option-Pragmas.html
prev parent reply other threads:[~2012-05-06 13:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-01 16:31 How can I turn off/disable -O2/-Os optimization? Zhihua Che
2012-04-01 16:49 ` Randy Dunlap
2012-04-02 8:44 ` Zhihua Che
2012-05-06 2:00 ` Renato Westphal
2012-05-06 13:28 ` Hagen Paul Pfeifer [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=20120506132827.GB3824@nuttenaction \
--to=hagen@jauu.net \
--cc=acme@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=rdunlap@xenotime.net \
--cc=renatowestphal@gmail.com \
--cc=zhihua.che@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