diff options
author | fche <fche> | 2006-03-09 14:14:52 +0000 |
---|---|---|
committer | fche <fche> | 2006-03-09 14:14:52 +0000 |
commit | 438cd7ed199ae31e60c973d78c48d2923e344687 (patch) | |
tree | 1405d082d97a431d76358dc3284458bdef05e8b1 /translate.cxx | |
parent | 68642a15584f9e4fbf8cfc5765a3cfaeac0a5bbb (diff) | |
download | systemtap-steved-438cd7ed199ae31e60c973d78c48d2923e344687.tar.gz systemtap-steved-438cd7ed199ae31e60c973d78c48d2923e344687.tar.xz systemtap-steved-438cd7ed199ae31e60c973d78c48d2923e344687.zip |
2006-03-09 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (emit_locks): Emit dummy references to unlock_ ...
(emit_module_init): ... and probe_point.
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx index 2c4e503e..c2146e84 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1007,6 +1007,7 @@ c_unparser::emit_module_init () o->newline(1) << "int rc = 0;"; o->newline() << "const char *probe_point = \"\";"; + o->newline() << "(void) probe_point;"; o->newline() << "atomic_set (&session_state, STAP_SESSION_STARTING);"; // This signals any other probes that may be invoked in the next little // while to abort right away. Currently running probes are allowed to @@ -1298,6 +1299,8 @@ c_unparser::emit_locks(const varuse_collecting_visitor& vut) last_locked_var = v->name; } + o->newline() << "if (0) goto unlock_;"; + o->newline(-1) << "}"; } |