From: <sv...@op...> - 2024-08-14 09:22:45
|
Author: manx Date: Wed Aug 14 11:22:38 2024 New Revision: 21428 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21428 Log: [Fix] GCC 14 optimizer is still on crack. Modified: trunk/OpenMPT/soundlib/Load_xm.cpp Modified: trunk/OpenMPT/soundlib/Load_xm.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_xm.cpp Wed Aug 14 11:22:06 2024 (r21427) +++ trunk/OpenMPT/soundlib/Load_xm.cpp Wed Aug 14 11:22:38 2024 (r21428) @@ -1133,8 +1133,8 @@ #ifndef MODPLUG_NO_FILESAVE -#if MPT_GCC_AT_LEAST(13, 0, 0) && MPT_GCC_BEFORE(14, 1, 0) -// work-around massively confused GCC 13 optimizer: +#if MPT_GCC_AT_LEAST(13, 0, 0) && MPT_GCC_BEFORE(15, 1, 0) +// work-around massively confused GCC 13/14 optimizer: // /usr/include/c++/13/bits/stl_algobase.h:437:30: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing between 3 and 9223372036854775806 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] template <typename Tcont2, typename Tcont1> static MPT_NOINLINE Tcont1 & gcc_append(Tcont1 & cont1, const Tcont2 & cont2) { @@ -1415,7 +1415,7 @@ } } -#if MPT_GCC_AT_LEAST(13, 0, 0) && MPT_GCC_BEFORE(14, 1, 0) +#if MPT_GCC_AT_LEAST(13, 0, 0) && MPT_GCC_BEFORE(15, 1, 0) gcc_append(samples, additionalSamples); #else mpt::append(samples, additionalSamples); |