From 438cd7ed199ae31e60c973d78c48d2923e344687 Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 9 Mar 2006 14:14:52 +0000 Subject: 2006-03-09 Frank Ch. Eigler * translate.cxx (emit_locks): Emit dummy references to unlock_ ... (emit_module_init): ... and probe_point. --- ChangeLog | 5 +++++ translate.cxx | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index cd80930a..9e67a331 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-09 Frank Ch. Eigler + + * translate.cxx (emit_locks): Emit dummy references to unlock_ ... + (emit_module_init): ... and probe_point. + 2006-03-06 Frank Ch. Eigler 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) << "}"; } -- cgit