summaryrefslogtreecommitdiffstats
path: root/hash.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-07-11 19:59:42 +0200
committerMark Wielaard <mjw@redhat.com>2009-07-11 19:59:42 +0200
commit5a5732e52738b4f00995e705a170230c106885b6 (patch)
treea694f978686400505c10df4f8020027a25218db1 /hash.cxx
parent4eb0c58b7d5c97a822e76c9070bc45e9b09a7c9e (diff)
downloadsystemtap-steved-5a5732e52738b4f00995e705a170230c106885b6.tar.gz
systemtap-steved-5a5732e52738b4f00995e705a170230c106885b6.tar.xz
systemtap-steved-5a5732e52738b4f00995e705a170230c106885b6.zip
Add -O[0123s] gcc optimization flags for gcc pass 4 speedup.
* session.h (struct systemtap_session): Add gcc_flags string field. * main.cxx (usage): Document -O[0123s]. (main): Default gcc_flags to -O0. Add O:: to getopt_long. Handle case 'O' to set gcc_flags. * buildrun.cxx (compile_pass): Add gcc_flags to EXTRA_CFLAGS. * stap1.in: Add -O[0123s] documentation. * testsuite/systemtap.base/cache.exp: Add tests for -O[0123s].
Diffstat (limited to 'hash.cxx')
-rw-r--r--hash.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.cxx b/hash.cxx
index 45ae05eb..4e85ed28 100644
--- a/hash.cxx
+++ b/hash.cxx
@@ -175,6 +175,7 @@ find_script_hash (systemtap_session& s, const string& script, const hash &base)
h.add(s.ignore_dwarf); // --ignore-dwarf
h.add(s.consult_symtab); // --kelf, --kmap
h.add(s.skip_badvars); // --skip-badvars
+ h.add(s.gcc_flags); // -O[0123s]
if (!s.kernel_symtab_path.empty()) // --kmap
{
h.add(s.kernel_symtab_path);