É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 <[email protected]>  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 <[email protected]>
+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.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to