Blame SOURCES/rhbz1908904.patch

ac42f3
commit e3287bddcdc51705bb206479daa82e97fb28071f
ac42f3
Author: Frank Ch. Eigler <fche@redhat.com>
ac42f3
Date:   Wed Dec 9 22:29:43 2020 -0500
ac42f3
ac42f3
    PR27044: fix lock loop for conditional probes
ac42f3
    
ac42f3
    Emit a nested block carefully so that the "goto out;" from a failed
ac42f3
    stp_lock_probe() call in that spot near the epilogue of a
ac42f3
    probe-handler goes downward, not upward.
ac42f3
ac42f3
diff --git a/translate.cxx b/translate.cxx
ac42f3
index f0195486c..d7fe1e3b2 100644
ac42f3
--- a/translate.cxx
ac42f3
+++ b/translate.cxx
ac42f3
@@ -2969,21 +2969,21 @@ c_unparser::emit_probe (derived_probe* v)
ac42f3
         {
ac42f3
           // PR26296
ac42f3
           // emit all read/write locks for global variables ... if somehow still not done by now
ac42f3
+          // emit a local out: label, for error catching in these condition exprs
ac42f3
+          o->newline() << "{";
ac42f3
+          o->newline(1) << "__label__ out, deref_fault;";
ac42f3
           if (v->needs_global_locks ())
ac42f3
             emit_lock ();
ac42f3
 
ac42f3
           for (set<derived_probe*>::const_iterator
ac42f3
-                it  = v->probes_with_affected_conditions.begin();
ac42f3
-                it != v->probes_with_affected_conditions.end(); ++it)
ac42f3
+                 it  = v->probes_with_affected_conditions.begin();
ac42f3
+               it != v->probes_with_affected_conditions.end(); ++it)
ac42f3
             {
ac42f3
-              // emit a local out: label, for error catching in these condition exprs
ac42f3
-              o->newline() << "{";
ac42f3
-              o->newline(1) << "__label__ out, deref_fault;";
ac42f3
               emit_probe_condition_update(*it);
ac42f3
-              o->newline(-1) << "deref_fault: __attribute__((unused));";
ac42f3
-              o->newline() << "out: __attribute__((unused));";
ac42f3
-              o->newline() << "}";
ac42f3
             }
ac42f3
+          o->newline(-1) << "deref_fault: __attribute__((unused));";
ac42f3
+          o->newline() << "out: __attribute__((unused));";
ac42f3
+          o->newline() << "}";
ac42f3
         }
ac42f3
 
ac42f3
       // PR26296