summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <joshua.i.stone@intel.com>2008-06-18 18:12:38 -0700
committerJosh Stone <joshua.i.stone@intel.com>2008-06-18 18:12:38 -0700
commit3f33ee3ac885ac639f932ab5cfec03d6f5f125d0 (patch)
treefb9ce93182235d59ce57f5a2e6c67f14a67e9cf3
parentbea72737344238d12c4b4bcd197d7e6606780e45 (diff)
downloadsystemtap-steved-3f33ee3ac885ac639f932ab5cfec03d6f5f125d0.tar.gz
systemtap-steved-3f33ee3ac885ac639f932ab5cfec03d6f5f125d0.tar.xz
systemtap-steved-3f33ee3ac885ac639f932ab5cfec03d6f5f125d0.zip
Hack optim_arridx to avoid more optimization than intended
-rw-r--r--testsuite/systemtap.base/optim_arridx.exp2
-rw-r--r--testsuite/systemtap.base/optim_arridx.stp2
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/systemtap.base/optim_arridx.exp b/testsuite/systemtap.base/optim_arridx.exp
index 0987dec6..f4308db5 100644
--- a/testsuite/systemtap.base/optim_arridx.exp
+++ b/testsuite/systemtap.base/optim_arridx.exp
@@ -9,7 +9,7 @@ arr3:long [long]
fna:long (a:long)
return a
fnb:long (a:long, b:long)
-return (a) + (b)
+return ((a) + (b)) + (printf(""))
exit:unknown ()
%{
atomic_set (&session_state, STAP_SESSION_STOPPING);
diff --git a/testsuite/systemtap.base/optim_arridx.stp b/testsuite/systemtap.base/optim_arridx.stp
index 20710c7f..3e4f8fd2 100644
--- a/testsuite/systemtap.base/optim_arridx.stp
+++ b/testsuite/systemtap.base/optim_arridx.stp
@@ -1,7 +1,7 @@
global arr1, arr2, arr3, elide_idx1, elide_global_a, elide_global_b
function fna(a:long) {return a}
-function fnb(a:long, b:long) {return a+b}
+function fnb(a:long, b:long) {return a+b+printf("")}
probe begin {
// array indices