[med-svn] [Git][med-team/bart][master] 2 commits: workaround for compiler bug

Martin Uecker (@uecker-guest) gitlab at salsa.debian.org
Wed Dec 29 17:14:22 GMT 2021



Martin Uecker pushed to branch master at Debian Med / bart


Commits:
08dca9da by Martin Uecker at 2021-12-29T18:13:37+01:00
workaround for compiler bug

- - - - -
a99fc6c1 by Martin Uecker at 2021-12-29T18:13:37+01:00
Update changelog

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/0005-workaround-for-compiler-bug.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -4,6 +4,8 @@ bart (0.7.00-1) UNRELEASED; urgency=medium
   * New upstream version.
   * Patch to change library path for cuda.
   * Update upstream metadata.
+  * Patch to relax failing unit test.
+  * Patch to work around compiler bug.
 
   [ Andreas Tille ]
   * Standards-Version: 4.6.0 (routine-update)


=====================================
debian/patches/0005-workaround-for-compiler-bug.patch
=====================================
@@ -0,0 +1,40 @@
+From: Martin Uecker <martin.uecker at med.uni-goettingen.de>
+Date: Wed, 29 Dec 2021 14:31:57 +0100
+Subject: workaround for compiler bug
+
+---
+ src/simu/shape.h      | 4 ++--
+ src/simu/shepplogan.h | 6 +++---
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/src/simu/shape.h b/src/simu/shape.h
+index 52c1448..eae2b84 100644
+--- a/src/simu/shape.h
++++ b/src/simu/shape.h
+@@ -1,6 +1,6 @@
+ 
+ #include <complex.h>
+ 
+-extern complex double xpolygon(int N, const double pg[N][2], const double p[3]);
+-extern complex double kpolygon(int N, const double pg[N][2], const double q[3]);
++extern complex double xpolygon(int N, const double pg[/*N*/][2], const double p[3]);
++extern complex double kpolygon(int N, const double pg[/*N*/][2], const double q[3]);
+ 
+diff --git a/src/simu/shepplogan.h b/src/simu/shepplogan.h
+index 34b71b6..fad5ac7 100644
+--- a/src/simu/shepplogan.h
++++ b/src/simu/shepplogan.h
+@@ -62,10 +62,10 @@ extern complex double krectangle(const double center[2], const double axis[2], d
+     
+ 
+ 
+-extern complex double phantom(unsigned int N, const struct ellipsis_s arr[__VLA(N)], const double pos[2], _Bool ksp);
+-extern complex double phantomX(unsigned int N, const struct ellipsis_s arr[__VLA(N)], const double pos[2], _Bool ksp);
++extern complex double phantom(unsigned int N, const struct ellipsis_s arr[/*__VLA(N)*/], const double pos[2], _Bool ksp);
++extern complex double phantomX(unsigned int N, const struct ellipsis_s arr[/*__VLA(N)*/], const double pos[2], _Bool ksp);
+ 
+-extern complex double phantom3d(unsigned int N, const struct ellipsis3d_s arr[__VLA(N)], const double pos[3], _Bool ksp);
++extern complex double phantom3d(unsigned int N, const struct ellipsis3d_s arr[/*__VLA(N)*/], const double pos[3], _Bool ksp);
+ 
+ #include "misc/cppwrap.h"
+ 


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@
 0002-remove-empty-directory.patch
 0003-deactivate-ode-unit-tests.patch
 0004-relax-failing-unit-test.patch
+0005-workaround-for-compiler-bug.patch



View it on GitLab: https://salsa.debian.org/med-team/bart/-/compare/ebd42db073bcff93034bdfa68697364c6de31052...a99fc6c1a077cc3bc9c91c55f1faa6ce95432cf9

-- 
View it on GitLab: https://salsa.debian.org/med-team/bart/-/compare/ebd42db073bcff93034bdfa68697364c6de31052...a99fc6c1a077cc3bc9c91c55f1faa6ce95432cf9
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/20211229/5af9ff22/attachment-0001.htm>


More information about the debian-med-commit mailing list