summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Therning <niklas@therning.org>2012-04-17 13:38:29 +0200
committerIvan Maidanski <ivmai@mail.ru>2012-04-22 13:11:42 +0200
commit5fff38b536569a43634730768fe5fda6f9a83ab1 (patch)
tree6cd29780fddcc793f194ad52fd04019ee4c7a5fb /include
parent86fbdefea0031686e98a5c910603532859913649 (diff)
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).
Diffstat (limited to 'include')
-rw-r--r--include/private/gcconfig.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index 4d27bde..dbb4153 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -680,7 +680,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