summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-07-14 00:30:55 +0200
committerMark Wielaard <mjw@redhat.com>2009-07-14 00:30:55 +0200
commitec6fdef5a46f450c8b7a52b491de6a17155101df (patch)
treed1e2c6ff95f381826f7f94e43a688c6a9951d6b0 /main.cxx
parent4a4edc21a14792a4cc240b601912734027945ae8 (diff)
downloadsystemtap-steved-ec6fdef5a46f450c8b7a52b491de6a17155101df.tar.gz
systemtap-steved-ec6fdef5a46f450c8b7a52b491de6a17155101df.tar.xz
systemtap-steved-ec6fdef5a46f450c8b7a52b491de6a17155101df.zip
Make kernel opt-level the default again.
* main.cxx (main): Default gcc_flags to kernel opt-level (empty). * buildrun.cxx (compile_pass): Add -freorder-blocks back, document choices. * stap.1.in: Document new default opt-level. * testsuite/systemtap.base/cache.exp: Adjust for new caching results.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cxx b/main.cxx
index 2aeff580..130812ad 100644
--- a/main.cxx
+++ b/main.cxx
@@ -118,7 +118,7 @@ usage (systemtap_session& s, int exitcode)
<< " -O2 Optimize more, takes more time" << endl
<< " -O3 Optimize even more, takes even more time" << endl
<< " -Os Optimize for size, like -O2 but tuned for small code size" << endl
- << " Default is -O0." << endl
+ << " Default is the kernel opt-level default (-O2 or -Os)." << endl
<< " -c CMD start the probes, run CMD, and exit when it finishes" << endl
<< " -x PID sets target() to PID" << endl
<< " -F run as on-file flight recorder with -o." << endl
@@ -411,7 +411,7 @@ main (int argc, char * const argv [])
s.ignore_dwarf = false;
s.load_only = false;
s.skip_badvars = false;
- s.gcc_flags = "-O0";
+ s.gcc_flags = ""; // Default to kernel opt-level.
// Location of our signing certificate.
// If we're root, use the database in SYSCONFDIR, otherwise