From bb19c48faa0e743efca0440c0e0c2e7c1162d13e Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Sat, 24 Aug 2013 16:58:32 +0000 Subject: [PATCH] Workaround 'inlining failed' build error with older GCC 4.x releases. R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/22867047 Patch from Ben Noordhuis . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16309 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- include/v8config.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/v8config.h b/include/v8config.h index fe72c95..aa24eeb 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)) -- 2.7.4