Index: include/v8config.h |
diff --git a/include/v8config.h b/include/v8config.h |
index fe72c954289c2951ac8231be93362b606ba503a5..aa24eebff50bb193543295723c9195ece613b8ec 100644 |
--- a/include/v8config.h |
+++ b/include/v8config.h |
@@ -147,7 +147,10 @@ |
# endif |
# define V8_HAS_ATTRIBUTE___ALIGNED__ (V8_GNUC_PREREQ(2, 95, 0)) |
-# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (V8_GNUC_PREREQ(4, 0, 0)) |
+// always_inline is available in gcc 4.0 but not very reliable until 4.4. |
+// Works around "sorry, unimplemented: inlining failed" build errors with |
+// older compilers. |
+# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (V8_GNUC_PREREQ(4, 4, 0)) |
# define V8_HAS_ATTRIBUTE_DEPRECATED (V8_GNUC_PREREQ(3, 4, 0)) |
# define V8_HAS_ATTRIBUTE_VISIBILITY (V8_GNUC_PREREQ(4, 3, 0)) |