[starlink-ast] 01/01: Workaround for armhf FTBS due to a compiler bug.

Ole Streicher olebole at moszumanska.debian.org
Sat Oct 25 18:13:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository starlink-ast.

commit 398ff810298f3b303667ec9f6433c19b48b42a1d
Author: Ole Streicher <olebole at debian.org>
Date:   Sat Oct 25 18:23:01 2014 +0200

    Workaround for armhf FTBS due to a compiler bug.
---
 debian/changelog                                  |  6 ++++++
 debian/patches/series                             |  1 +
 debian/patches/workround_armhf_compiler_bug.patch | 25 +++++++++++++++++++++++
 3 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index efd3265..83c7d4a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+starlink-ast (8.0.2+dfsg-2) UNRELEASED; urgency=low
+
+  * Workaround for armhf FTBS due to a compiler bug.
+
+ -- Ole Streicher <olebole at debian.org>  Sat, 25 Oct 2014 18:20:49 +0200
+
 starlink-ast (8.0.2+dfsg-1) unstable; urgency=low
 
   * New upstream version
diff --git a/debian/patches/series b/debian/patches/series
index f360d2a..a1b9e71 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ rename_library
 use_std_automake.patch
 use_external_pal.patch
 use_external_cminpack.patch
+workround_armhf_compiler_bug.patch
diff --git a/debian/patches/workround_armhf_compiler_bug.patch b/debian/patches/workround_armhf_compiler_bug.patch
new file mode 100644
index 0000000..a8326dc
--- /dev/null
+++ b/debian/patches/workround_armhf_compiler_bug.patch
@@ -0,0 +1,25 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Work around a weird optimization bug in armhf
+ Without this patch, compilation on armhf fails with
+ .
+  /tmp/ccJsRMs3.s: Assembler messages:
+  /tmp/ccJsRMs3.s:21403: Warning: base register written back, and overlaps one of transfer registers
+  /tmp/ccJsRMs3.s:28133: Error: registers may not be the same -- `str r3,[r3],#4'
+  /tmp/ccJsRMs3.s:28971: Warning: base register written back, and overlaps one of transfer registers
+ .
+ on gcc-4.9.4. See
+ https://buildd.debian.org/status/fetch.php?pkg=starlink-ast&arch=armhf&ver=8.0.2%2Bdfsg-1&stamp=1414223014
+ as example.
+ .
+ The error appears with MAKE_MASK(F, float), while the warnings are with
+ MAKE_MASK(D, double) and MAKE_MASK(LD, long double).
+--- a/region.c
++++ b/region.c
+@@ -12996,6 +12996,7 @@
+    return (**astMEMBER(this,Region,BndMesh))( this, lbnd, ubnd, status );
+ }
+ 
++#pragma GCC optimize ("no-expensive-optimizations")
+ #define MAKE_MASK_(X,Xtype) \
+ int astMask##X##_( AstRegion *this, AstMapping *map, int inside, int ndim, \
+                    const int lbnd[], const int ubnd[], Xtype in[], \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/starlink-ast.git



More information about the debian-science-commits mailing list