Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sbcl for openSUSE:Factory checked in 
at 2026-11-13 18:37:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sbcl (Old)
 and      /work/SRC/openSUSE:Factory/.sbcl.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sbcl"

Fri Nov 13 18:37:34 2026 rev:138 rq:1397371 version:2.6.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/sbcl/sbcl.changes        2026-10-31 
23:14:59.607443211 +0100
+++ /work/SRC/openSUSE:Factory/.sbcl.new.1251/sbcl.changes      2026-11-13 
18:41:35.833209719 +0100
@@ -1,0 +2,9 @@
+Fri Nov 13 11:51:08 UTC 2026 - Bernhard Wiedemann <[email protected]>
+
+- Add sbcl-x86-64-logcount-register.patch from upstream: on CPUs
+  without POPCNT (e.g. qemu64 or pre-Nehalem) LOGCOUNT passed its
+  argument to the assembly routine in the wrong register since 2.6.8,
+  which crashed SBCL on bignums and returned wrong counts for fixnums,
+  breaking the compiler in 2.6.10 (lp#2173766)
+
+-------------------------------------------------------------------

Old:
----
  sbcl-2.6.9-source.tar.bz2

New:
----
  sbcl-x86-64-logcount-register.patch

----------(New B)----------
  New:
- Add sbcl-x86-64-logcount-register.patch from upstream: on CPUs
  without POPCNT (e.g. qemu64 or pre-Nehalem) LOGCOUNT passed its
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sbcl.spec ++++++
--- /var/tmp/diff_new_pack.7Oijjt/_old  2026-11-13 18:41:36.989258631 +0100
+++ /var/tmp/diff_new_pack.7Oijjt/_new  2026-11-13 18:41:36.991258716 +0100
@@ -108,6 +108,8 @@
 Patch1:         remove-qemu-workarounds.patch
 # PATCH-FIX-UPSTREAM Use SOURCE_DATE_EPOCH for the manual generation date
 Patch2:         sb-manual-source-date-epoch.patch
+# PATCH-FIX-UPSTREAM https://bugs.launchpad.net/sbcl/+bug/2173766 LOGCOUNT 
without POPCNT used the wrong register since 2.6.8
+Patch3:         sbcl-x86-64-logcount-register.patch
 ExcludeArch:    s390x
 Requires:       sbcl-bin
 

++++++ sbcl-x86-64-logcount-register.patch ++++++
>From 63e0132c58942e627a7ba1007d1c7ec1062df474 Mon Sep 17 00:00:00 2001
From: Stas Boukarev <[email protected]>
Date: Mon, 9 Nov 2026 18:52:10 +0300
Subject: [PATCH] x86-64: fix non-popcnt logcount

Use the right register.

Fixes lp#2173766
---
 src/assembly/x86-64/arith.lisp | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/assembly/x86-64/arith.lisp b/src/assembly/x86-64/arith.lisp
index ffc77800f..dd9805994 100644
--- a/src/assembly/x86-64/arith.lisp
+++ b/src/assembly/x86-64/arith.lisp
@@ -278,18 +278,18 @@
          (:results (result :scs (unsigned-reg)))
          (:result-types positive-fixnum)
          ;; input/output of assembly routine
-         (:temporary (:sc unsigned-reg :offset rdx-offset
-                          :from (:argument 0) :to (:result 0)) rdx)
+         (:temporary (:sc unsigned-reg :offset #.(car 
sb-vm::*register-arg-offsets*)
+                          :from (:argument 0) :to (:result 0)) routine-result)
          (:vop-var vop)
          (:generator ,cost
            ,@(when signed
-               `((move rdx arg)
-                 (setf arg rdx)
+               `((move routine-result arg)
+                 (setf arg routine-result)
                  ,(if (eq arg-type 'fixnum)
-                      `(inst sar rdx n-fixnum-tag-bits)
-                      `(inst test rdx rdx))
+                      `(inst sar routine-result n-fixnum-tag-bits)
+                      `(inst test routine-result routine-result))
                  (inst jmp :ge POSITIVE)
-                 (inst not rdx)
+                 (inst not routine-result)
                  POSITIVE))
            (when (memq :popcnt *backend-subfeatures*) ; always use POPCNT
            ;; Intel's implementation of POPCNT on some models treats it as
@@ -312,9 +312,9 @@
            (inst popcnt result arg)
            (inst jmp done)
          slow
-           (move rdx arg)
+           (move routine-result arg)
            (invoke-asm-routine 'call 'logcount vop)
-           (move result rdx)
+           (move result routine-result)
          done))))
   (def-it unsigned-byte-64-count 14 unsigned-reg unsigned-num)
   (def-it signed-byte-64-count 15 signed-reg signed-num :signed t)

Reply via email to