summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorfche <fche>2006-04-21 19:51:43 +0000
committerfche <fche>2006-04-21 19:51:43 +0000
commit35d4ab18d5d333ffcac436ea174beb7201275c65 (patch)
tree0c785d3b462cc7ca483f105639057239ac38da84 /buildrun.cxx
parentf9db95d019b4936d62c9b3e021aecc2dfb653dcf (diff)
downloadsystemtap-steved-35d4ab18d5d333ffcac436ea174beb7201275c65.tar.gz
systemtap-steved-35d4ab18d5d333ffcac436ea174beb7201275c65.tar.xz
systemtap-steved-35d4ab18d5d333ffcac436ea174beb7201275c65.zip
2006-04-21 Frank Ch. Eigler <fche@elastic.org>
PR 953 * elaborate.h (derived_probe): Add field "name". Stop passing "probe index" to other emit_* calls. (emit_probe_context_vars): New member function. * elaborate.cxx (derived_probe ctor): Generate unique name. * translate.cxx (*): Adapt to index->name. (emit_probe): Realize that probe locals only occur at nesting=0. * tapsets.cxx (*derived_probe::emit_*): Adapt to index->name. (mark_var_expanding_copy_visitor): New class to process $argN. (mark_derived_probe ctor): Call it. (mark_derived_probe::emit_probe_context_vars): Do it. * buildrun.cxx (compile_pass): Add more optional gcc verbosity. Add CFLAGS += -freorder-blocks. * testsuite/buildok/marker.stp: New test.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 37f079f2..f71af527 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -67,9 +67,13 @@ compile_pass (systemtap_session& s)
for (unsigned i=0; i<s.macros.size(); i++)
o << "CFLAGS += -D " << lex_cast_qstring(s.macros[i]) << endl;
- // XXX
- // o << "CFLAGS += -ftime-report" << endl;
+ if (s.verbose > 2)
+ o << "CFLAGS += -ftime-report -Q" << endl;
+ o << "CFLAGS += -freorder-blocks" << endl; // improve on -Os
+
+ // o << "CFLAGS += -fno-unit-at-a-time" << endl;
+
// Assumes linux 2.6 kbuild
o << "CFLAGS += -Wno-unused -Werror" << endl;
o << "CFLAGS += -I\"" << s.runtime_path << "\"" << endl;