summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-03-03 19:01:58 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-03-03 19:01:58 -0500
commitc108ad66d2218a1311b8891f1194d08179ae7c19 (patch)
tree66b3e148a84447d69f1340447c5edba8bf2055cd /staptree.cxx
parent378f9227b04b876ff06af099715e7d60cdc49903 (diff)
parentb0be9bdb8c6972d847cad50a1e699f1fa806ad99 (diff)
downloadsystemtap-steved-c108ad66d2218a1311b8891f1194d08179ae7c19.tar.gz
systemtap-steved-c108ad66d2218a1311b8891f1194d08179ae7c19.tar.xz
systemtap-steved-c108ad66d2218a1311b8891f1194d08179ae7c19.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 63c1fcf7..778691f4 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -1644,6 +1644,17 @@ varuse_collecting_visitor::visit_embeddedcode (embeddedcode *s)
embedded_seen = true;
}
+void
+varuse_collecting_visitor::visit_target_symbol (target_symbol *e)
+{
+ // Still-unresolved target symbol assignments get treated as
+ // generating side-effects like embedded-C, to prevent premature
+ // elision and later error message suppression (PR5516). rvalue use
+ // of unresolved target symbols is OTOH not considered a side-effect.
+
+ if (is_active_lvalue (e))
+ embedded_seen = true;
+}
void
varuse_collecting_visitor::visit_print_format (print_format* e)