From c591c17b3ff3cb5e36a91d3a4dd2feb71b046804 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 19 Jan 2009 08:55:15 +0000 Subject: [PATCH] Fix Savannah bug #25355. * include/freetype/config/ftconfig.h (FT_MulFix_i386): Make assembler code work with gcc 2.95.3 (as used by the Haiku project). Add `cc' register to the clobber list. --- ChangeLog | 8 ++++++++ include/freetype/config/ftconfig.h | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 911d48bbf..33236b3dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-01-19 Michael Lotz + + Fix Savannah bug #25355. + + * include/freetype/config/ftconfig.h (FT_MulFix_i386): Make + assembler code work with gcc 2.95.3 (as used by the Haiku project). + Add `cc' register to the clobber list. + 2009-01-18 Werner Lemberg Protect FT_Get_Next_Char. diff --git a/include/freetype/config/ftconfig.h b/include/freetype/config/ftconfig.h index 169da3cf3..3c0b8b164 100644 --- a/include/freetype/config/ftconfig.h +++ b/include/freetype/config/ftconfig.h @@ -357,9 +357,9 @@ FT_BEGIN_HEADER "shrl $16, %%eax\n" "shll $16, %%edx\n" "addl %%edx, %%eax\n" - : "=a"(result), "+d"(b) - : "a"(a) - : "%ecx" ); + : "=a"(result), "=d"(b) + : "a"(a), "d"(b) + : "%ecx", "cc" ); return result; }