diff --git a/jsi.h b/jsi.h index ecd922b..c9e17fd 100644 --- a/jsi.h +++ b/jsi.h @@ -13,6 +13,13 @@ #include #include +/* 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 */