[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778359: qtwebkit-opensource-src: FTBFS on x32: unnecessary size qualifier in asm



Package: qtwebkit-opensource-src
Version: 5.3.2+dfsg-3
Severity: normal
Tags: patch

Hi!
Your package fails to build on the x32 second-class architecture.  The
failure stems from use of "cmpxchgq" in assembly code.  Dropping the "q"
qualifier lets the compiler infer the argument size, making that code
work on both amd64 and x32.


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'unreleased'), (50, 'experimental')
Architecture: x32 (x86_64)

Kernel: Linux 3.19.0-x32 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
--- qtwebkit-opensource-src-5.3.2+dfsg/Source/WTF/wtf/Atomics.h~	2014-09-11 12:48:11.000000000 +0200
+++ qtwebkit-opensource-src-5.3.2+dfsg/Source/WTF/wtf/Atomics.h	2015-02-13 22:32:03.647863539 +0100
@@ -188,7 +188,7 @@
 #if CPU(X86_64)
     bool result;
     asm volatile(
-        "lock; cmpxchgq %3, %2\n\t"
+        "lock; cmpxchg %3, %2\n\t"
         "sete %1"
         : "+a"(expected), "=q"(result), "+m"(*location)
         : "r"(newValue)

Reply to: