[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 4fef1fced: [smooth] Fix GCC LTO crashes on Windows.

From: Werner Lemberg
Subject: [freetype2] master 4fef1fced: [smooth] Fix GCC LTO crashes on Windows.
Date: Fri, 10 Jun 2022 11:51:19 -0400 (EDT)

branch: master
commit 4fef1fcede8c7934a72b715f15fd7747c6b74618
Author: Alexei Podtelezhnikov <>
Commit: Alexei Podtelezhnikov <>

    [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 )

reply via email to

[Prev in Thread] Current Thread [Next in Thread]