summaryrefslogtreecommitdiff
path: root/libpthread/nptl/forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/forward.c')
-rw-r--r--libpthread/nptl/forward.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpthread/nptl/forward.c b/libpthread/nptl/forward.c
index a5c97babd..48d38d9aa 100644
--- a/libpthread/nptl/forward.c
+++ b/libpthread/nptl/forward.c
@@ -160,6 +160,10 @@ FORWARD2(__pthread_unwind,
/* We cannot call abort() here. */
INTERNAL_SYSCALL_DECL (err);
INTERNAL_SYSCALL (kill, err, 1, SIGKILL);
+#if defined __GNUC__ && (!__GNUC_PREREQ (4, 4) && !__GNUC_PREREQ (4, 2))
__builtin_unreachable();
+#else
+ while(1);
+#endif
})
#undef return