Source: icedove
Version: 24.2.0esr-1
Severity: wishlist
Tags: patch
User: debian-powerpc...@breakpoint.cc
Usertags: powerpcspe

Hi,

icedove FTBFS on powerpcspe like this:

...
In file included from 
/«PKGBUILDDIR»/mozilla/js/xpconnect/loader/mozJSComponentLoader.h:8:0,
                 from 
/«PKGBUILDDIR»/mozilla/js/xpconnect/loader/mozJSComponentLoader.cpp:31:
../../../dist/include/jsapi.h: In member function 'nsresult 
mozJSComponentLoader::ImportInto(const nsACString_internal&, JSObject*, 
JSContext*, JSObject**)':
../../../dist/include/jsapi.h:151:45: error: cannot reload integer constant 
operand in 'asm'
     asm volatile("":: "g" (hold) : "memory");
                                             ^
../../../dist/include/jsapi.h:151:45: error: cannot reload integer constant 
operand in 'asm'
     asm volatile("":: "g" (hold) : "memory");
...

The attached patch fixes this by omitting the asm construction on powerpcspe
only (__NO_FPRS__).

Roland

-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: powerpcspe (ppc)

Kernel: Linux 3.9.0-dirty (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: icedove-17.0.10/mozilla/js/src/jsapi.h
===================================================================
--- icedove-17.0.10.orig/mozilla/js/src/jsapi.h	2013-11-15 17:38:41.000000000 +0100
+++ icedove-17.0.10/mozilla/js/src/jsapi.h	2014-01-09 22:03:45.827455194 +0100
@@ -148,7 +148,9 @@
      * G++ will assume that all memory has changed after the asm, as it would for a
      * call to an unknown function. I don't know of a way to avoid that consequence.
      */
+#ifndef __NO_FPRS__
     asm volatile("":: "g" (hold) : "memory");
+#endif
 }
 #else
 template<typename T>

Reply via email to