[med-svn] [Git][med-team/spades][master] fix baseline violation caused by popcnt asm call

Étienne Mollier gitlab at salsa.debian.org
Sat Feb 27 09:47:16 GMT 2021



Étienne Mollier pushed to branch master at Debian Med / spades


Commits:
16312b83 by Étienne Mollier at 2021-02-27T10:46:30+01:00
fix baseline violation caused by popcnt asm call

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/fix-sigill-on-non-popcnt-cpus.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -43,6 +43,9 @@ spades (3.15.1+dfsg-1) UNRELEASED; urgency=medium
   * Add disable_local_convertutf.patch: to cover for dfsg-removed ConvertUTF.o,
     link against system's LLVMSupport.a
 
+  [ Étienne Mollier ]
+  * Add fix-sigill-on-non-popcnt-cpus.patch; fixes baseline violation.
+
  -- Juhani Numminen <juhaninumminen0 at gmail.com>  Fri, 26 Feb 2021 13:07:24 +0200
 
 spades (3.13.1+dfsg-2) unstable; urgency=medium


=====================================
debian/patches/fix-sigill-on-non-popcnt-cpus.patch
=====================================
@@ -0,0 +1,21 @@
+Description: fix baseline violation caused by asm calling popcnt
+Author: Étienne Mollier <etienne.mollier at mailoo.org>
+Forwarded: no
+Last-Update: 2021-02-27
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- spades.orig/assembler/ext/src/gqf/gqf.c
++++ spades/assembler/ext/src/gqf/gqf.c
+@@ -174,11 +174,7 @@
+ 
+ 
+ static inline int popcnt(uint64_t val) {
+-       asm("popcnt %[val], %[val]"
+-                       : [val] "+r" (val)
+-                       :
+-                       : "cc");
+-       return val;
++       return __builtin_popcount(val);
+ }
+ 
+ static inline int popcntv(const uint64_t val, int ignore)


=====================================
debian/patches/series
=====================================
@@ -17,3 +17,4 @@ debuginfo.patch
 debian_bwa_zlib.patch
 workdir_for_test.patch
 disable_local_convertutf.patch
+fix-sigill-on-non-popcnt-cpus.patch



View it on GitLab: https://salsa.debian.org/med-team/spades/-/commit/16312b835188d25109564d1603f4e4d1e4150a45

-- 
View it on GitLab: https://salsa.debian.org/med-team/spades/-/commit/16312b835188d25109564d1603f4e4d1e4150a45
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210227/889d1686/attachment-0001.htm>


More information about the debian-med-commit mailing list