Author: manx
Date: Sun May 12 13:07:25 2024
New Revision: 20799
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20799
Log:
Merged revision(s) 20798 from trunk/OpenMPT:
[Var] Link to <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115049>.
........
Modified:
branches/OpenMPT-1.31/ (props changed)
branches/OpenMPT-1.31/common/BuildSettings.h
branches/OpenMPT-1.31/src/mpt/base/detect_quirks.hpp
branches/OpenMPT-1.31/src/mpt/check/compiler.hpp
Modified: branches/OpenMPT-1.31/common/BuildSettings.h
==============================================================================
--- branches/OpenMPT-1.31/common/BuildSettings.h Sun May 12 13:06:52 2024 (r20798)
+++ branches/OpenMPT-1.31/common/BuildSettings.h Sun May 12 13:07:25 2024 (r20799)
@@ -391,6 +391,7 @@
#if MPT_COMPILER_GCC
#ifdef MPT_COMPILER_QUIRK_GCC_NO_O2
+// See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115049>.
#if defined(__OPTIMIZE__)
#pragma GCC optimize("O1")
#endif
Modified: branches/OpenMPT-1.31/src/mpt/base/detect_quirks.hpp
==============================================================================
--- branches/OpenMPT-1.31/src/mpt/base/detect_quirks.hpp Sun May 12 13:06:52 2024 (r20798)
+++ branches/OpenMPT-1.31/src/mpt/base/detect_quirks.hpp Sun May 12 13:07:25 2024 (r20799)
@@ -21,7 +21,7 @@
#if MPT_GCC_AT_LEAST(14, 0, 0) && MPT_GCC_BEFORE(15, 0, 0)
// GCC 14 causes severe miscompilation of inline functions.
-// Link to bug report will follow.
+// See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115049>.
#if defined(__OPTIMIZE__)
#define MPT_COMPILER_QUIRK_GCC_NO_O2
#endif
Modified: branches/OpenMPT-1.31/src/mpt/check/compiler.hpp
==============================================================================
--- branches/OpenMPT-1.31/src/mpt/check/compiler.hpp Sun May 12 13:06:52 2024 (r20798)
+++ branches/OpenMPT-1.31/src/mpt/check/compiler.hpp Sun May 12 13:07:25 2024 (r20799)
@@ -9,6 +9,7 @@
#ifndef MPT_CHECK_CXX_IGNORE_WARNING_O2
#if defined(MPT_COMPILER_QUIRK_GCC_NO_O2)
+// See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115049>.
MPT_WARNING("GCC 14 is known to cause severe miscompilation of inline functions. OpenMPT has forced optimization settings down to -O1. This comes at a roughly 15% performance cost. It is strongly recommended to stay with GCC 13 for the time being. You will need to edit the source to opt-out of this safety guard.")
#endif
#endif
|