ref: 90a63426ee93d9079a032740e519988e26d1949c
parent: e7ba87678f2f1edcb9fcb0564fa7a140ae4fe6bc
author: Tor Andersson <tor.andersson@artifex.com>
date: Thu Nov 4 08:21:12 EDT 2021
Issue #152: Work around GCC compiler bug introduced in 2015. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103052 for details.
--- a/jsi.h
+++ b/jsi.h
@@ -13,6 +13,13 @@
#include <float.h>
#include <limits.h>
+/* NOTE: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103052 */
+#ifdef __GNUC__
+#if (__GNUC__ >= 6)
+#pragma GCC optimize ("no-ipa-pure-const")
+#endif
+#endif
+
/* Microsoft Visual C */
#ifdef _MSC_VER
#pragma warning(disable:4996) /* _CRT_SECURE_NO_WARNINGS */