From: Niklas Therning Date: Tue, 17 Apr 2012 11:38:29 +0000 (+0400) Subject: Fix GC_with_callee_saves_pushed for clang (disable __builtin_unwind_init) X-Git-Tag: gc7_3alpha2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac3228a123681396870064e39b86235ae15e8b09;p=gc 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). --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index a163e47c..89c50285 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