From 4fef1fcede8c7934a72b715f15fd7747c6b74618 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Fri, 10 Jun 2022 11:34:56 -0400 Subject: [PATCH] [smooth] Fix GCC LTO crashes on Windows. Fixes #1164 by using a volatile variable around `setjmp`. It is hard to say how this fixes crashes related to certain link-time optimizations. This does not decrease the rendering performance. * src/smooth/ftgrays.c (gray_convert_glyph_inner): Use volatile `error`. --- src/smooth/ftgrays.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index bff3c5903..28a081cbc 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -1912,7 +1912,7 @@ typedef ptrdiff_t FT_PtrDist; gray_convert_glyph_inner( RAS_ARG_ int continued ) { - int error; + volatile int error; if ( ft_setjmp( ras.jump_buffer ) == 0 )