From: <sv...@op...> - 2024-08-14 09:23:07
|
Author: manx Date: Wed Aug 14 11:23:00 2024 New Revision: 21429 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21429 Log: Merged revision(s) 21428 from trunk/OpenMPT: [Fix] GCC 14 optimizer is still on crack. ........ Modified: branches/OpenMPT-1.31/ (props changed) branches/OpenMPT-1.31/soundlib/Load_xm.cpp Modified: branches/OpenMPT-1.31/soundlib/Load_xm.cpp ============================================================================== --- branches/OpenMPT-1.31/soundlib/Load_xm.cpp Wed Aug 14 11:22:38 2024 (r21428) +++ branches/OpenMPT-1.31/soundlib/Load_xm.cpp Wed Aug 14 11:23:00 2024 (r21429) @@ -1135,8 +1135,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) { @@ -1417,7 +1417,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); |