From ac3228a123681396870064e39b86235ae15e8b09 Mon Sep 17 00:00:00 2001 From: Niklas Therning Date: Tue, 17 Apr 2012 15:38:29 +0400 Subject: [PATCH] Fix GC_with_callee_saves_pushed for clang (disable __builtin_unwind_init) * include/private/gcconfig.h (HAVE_BUILTIN_UNWIND_INIT): Do not define for clang (as __builtin_unwind_init seems to be a no-op in the latest clang release). --- include/private/gcconfig.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index a163e47..89c5028 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -700,7 +700,8 @@ /* __builtin_unwind_init() to push the relevant registers onto the stack. */ # if defined(__GNUC__) && ((__GNUC__ >= 3) \ || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)) \ - && !defined(__INTEL_COMPILER) && !defined(__PATHCC__) + && !defined(__INTEL_COMPILER) && !defined(__PATHCC__) \ + && !defined(__clang__) /* since no-op in clang (3.0) */ # define HAVE_BUILTIN_UNWIND_INIT # endif -- 2.7.4