Blame SOURCES/rhbz1908904.patch

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