diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | translate.cxx | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2006-03-09 Frank Ch. Eigler <fche@elastic.org> + + * translate.cxx (emit_locks): Emit dummy references to unlock_ ... + (emit_module_init): ... and probe_point. + 2006-03-06 Frank Ch. Eigler <fche@elastic.org> PR 2425 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) << "}"; } |