Work around GCC ICE on mips*, i386 and s390x
authorMike Hommey <mh@glandium.org>
Fri, 12 Jul 2019 09:28:34 +0000 (18:28 +0900)
committerMike Hommey <glandium@debian.org>
Mon, 9 Nov 2020 22:27:07 +0000 (22:27 +0000)
Closes: #931757
Gbp-Pq: Topic porting
Gbp-Pq: Name Work-around-GCC-ICE-on-mips-i386-and-s390x.patch

gfx/skia/skia/third_party/skcms/src/Transform_inl.h

index c4b312286a2f60f1c99772cf483632eda5c83466..cfaae3ea3615ec651337916310e429d37cdc00d6 100644 (file)
@@ -685,7 +685,7 @@ SI void sample_clut_16(const skcms_A2B* a2b, I32 ix, F* r, F* g, F* b) {
 // GCC 7.2.0 hits an internal compiler error with -finline-functions (or -O3)
 // when targeting MIPS 64, i386, or s390x,  I think attempting to inline clut() into exec_ops().
 #if 1 && defined(__GNUC__) && !defined(__clang__) \
-      && (defined(__mips64) || defined(__i386) || defined(__s390x__))
+      && (defined(__mips__) || defined(__i386) || defined(__s390x__))
     #define MAYBE_NOINLINE __attribute__((noinline))
 #else
     #define MAYBE_NOINLINE