summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-07-14 11:27:00 -0400
committerDave Brolley <brolley@redhat.com>2009-07-14 11:27:00 -0400
commitaa3ed413744f9830c272dbcedc3fffd1974b53ea (patch)
tree50d9af2af19ad5a25aa2974d2940057578c92fa6 /buildrun.cxx
parentee03b2aaf05b2ffed68f2023c8ea61a6ebb5d0ee (diff)
parent011165968c00e4125dfb9ee132e79f65dbea50c4 (diff)
downloadsystemtap-steved-aa3ed413744f9830c272dbcedc3fffd1974b53ea.tar.gz
systemtap-steved-aa3ed413744f9830c272dbcedc3fffd1974b53ea.tar.xz
systemtap-steved-aa3ed413744f9830c272dbcedc3fffd1974b53ea.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: main.cxx
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index b77eac14..9ebd4796 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -187,7 +187,16 @@ compile_pass (systemtap_session& s)
// if (s.keep_tmpdir)
// o << "CFLAGS += -fverbose-asm -save-temps" << endl;
- o << "EXTRA_CFLAGS += " << s.gcc_flags << endl; // Add -O[0123s]
+ // Kernels can be compiled with CONFIG_CC_OPTIMIZE_FOR_SIZE to select
+ // -Os, otherwise -O2 is the default.
+ o << "EXTRA_CFLAGS += -freorder-blocks" << endl; // improve on -Os
+
+ // We used to allow the user to override default optimization when so
+ // requested by adding a -O[0123s] so they could determine the
+ // time/space/speed tradeoffs themselves, but we cannot guantantee that
+ // the (un)optimized code actually compiles and/or generates functional
+ // code, so we had to remove it.
+ // o << "EXTRA_CFLAGS += " << s.gcc_flags << endl; // Add -O[0123s]
// o << "CFLAGS += -fno-unit-at-a-time" << endl;