Fix GC_with_callee_saves_pushed for clang (disable __builtin_unwind_init)
authorNiklas Therning <niklas@therning.org>
Tue, 17 Apr 2012 11:38:29 +0000 (15:38 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 17 Apr 2012 11:38:29 +0000 (15:38 +0400)
* 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

index a163e47..89c5028 100644 (file)
 /* __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