summaryrefslogtreecommitdiff
path: root/Build/source/libs/graphite2/graphite2-1.2.0-PATCHES/patch-02-attribute-hot
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/graphite2/graphite2-1.2.0-PATCHES/patch-02-attribute-hot')
-rw-r--r--Build/source/libs/graphite2/graphite2-1.2.0-PATCHES/patch-02-attribute-hot14
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/libs/graphite2/graphite2-1.2.0-PATCHES/patch-02-attribute-hot b/Build/source/libs/graphite2/graphite2-1.2.0-PATCHES/patch-02-attribute-hot
new file mode 100644
index 00000000000..1eaa4a69d4e
--- /dev/null
+++ b/Build/source/libs/graphite2/graphite2-1.2.0-PATCHES/patch-02-attribute-hot
@@ -0,0 +1,14 @@
+ The attribute requires in gcc-4.3 or better.
+
+diff -ur graphite2-1.2.0.orig/src/inc/Machine.h graphite2-1.2.0/src/inc/Machine.h
+--- graphite2-1.2.0.orig/src/inc/Machine.h 2012-09-21 10:39:40.000000000 +0200
++++ graphite2-1.2.0/src/inc/Machine.h 2012-12-04 13:10:33.000000000 +0100
+@@ -36,7 +36,7 @@
+ #include "inc/Main.h"
+
+ #if defined(__GNUC__)
+-#if defined(__clang__)
++#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__) < 403
+ #define HOT
+ #if defined(__x86_64)
+ #define REGPARM(n) __attribute__((regparm(n)))