Package: graphicsmagick / 1.4+really1.3.36+hg16481-2+deb11u1

semaphore_O0_ppc64el.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: compile magick/semaphore.c with -O0 on ppc64el
Bug-Debian: https://bugs.debian.org/837719
Forwarded: no
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Last-Update: 2017-12-10

---

--- graphicsmagick-1.3.25.orig/magick/semaphore.c
+++ graphicsmagick-1.3.25/magick/semaphore.c
@@ -46,6 +46,11 @@
 #  define USE_OPENMP_LOCKS 1
 #endif
 
+#if defined(_ARCH_PPC64)
+# pragma GCC push_options
+# pragma GCC optimize("O0")
+#endif
+
 #if defined(USE_PTHREAD_LOCKS)
 #  include <pthread.h>
 #  define PTHREAD_MUTEX_DESTROY(semaphore_mutex)                        \
@@ -649,3 +654,7 @@ MagickExport void UnlockSemaphoreInfo(Se
   LeaveCriticalSection(&semaphore_info->mutex);
 #endif /* defined(USE_WIN32_LOCKS) */
 }
+
+#if defined(_ARCH_PPC64)
+# pragma GCC pop_options
+#endif