Blame SOURCES/rhbz1908904.patch

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