summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 9cc9d98a..7bcdcf8d 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -191,9 +191,12 @@ compile_pass (systemtap_session& s)
// -Os, otherwise -O2 is the default.
o << "EXTRA_CFLAGS += -freorder-blocks" << endl; // improve on -Os
- // Allow user to override default optimization when so requested.
- // Last -OX wins.
- o << "EXTRA_CFLAGS += " << s.gcc_flags << endl; // Add -O[0123s]
+ // 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;