]> granicus.if.org Git - gc/commitdiff
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 a163e47c6bf33d188b780cfc30440afa0aaa020a..89c502858e0b7bccd9aad242454c7383367cf398 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