From 775d03908367410ba834b009d2a7d6033504cbf8 Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 17 Jan 2021 22:23:23 +0000 Subject: [PATCH] Expand gcc memcpy workaround to gcc-10 The upstream bug is still not fixed. --- common/2d/bitblt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/2d/bitblt.cpp b/common/2d/bitblt.cpp index c1aa009d5..bc88ad2ec 100644 --- a/common/2d/bitblt.cpp +++ b/common/2d/bitblt.cpp @@ -80,7 +80,7 @@ static void gr_for_each_bitmap_line(grs_canvas &canvas, const unsigned x, const static void gr_ubitmap00(grs_canvas &canvas, const unsigned x, const unsigned y, const grs_bitmap &bm) { -#if defined(WIN32) && defined(__GNUC__) && (__GNUC__ >= 6 && __GNUC__ <= 9) +#if defined(WIN32) && defined(__GNUC__) && (__GNUC__ >= 6 && __GNUC__ <= 10) /* * When using memcpy directly, i686-w64-mingw32-g++-6.3.0 fails to * deduce the template instantiation correctly, leading to a compiler @@ -94,6 +94,7 @@ static void gr_ubitmap00(grs_canvas &canvas, const unsigned x, const unsigned y, * Known affected: * - i686-w64-mingw32-g++-6.3.0 * - i686-w64-mingw32-g++-7.3.0 + * - i686-w64-mingw32-g++-10.2.0 * * Restrict this workaround to known broken versions. */